mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
Disable cleanup if mode is read only
Former-commit-id: 6283a6ce33c7f88f84a8686c6659771af1069206
This commit is contained in:
parent
1aa559498b
commit
e8f4a76c9e
@ -26,6 +26,7 @@ Please mark all change in change log and use the ticket from JIRA.
|
||||
- MS-90 - Fix arch match incorrect on ARM
|
||||
- MS-99 - Fix compilation bug
|
||||
- MS-110 - Avoid huge file size
|
||||
- MS-148 - Disable cleanup if mode is read only
|
||||
|
||||
## Improvement
|
||||
- MS-82 - Update server startup welcome message
|
||||
|
||||
@ -162,7 +162,9 @@ namespace meta {
|
||||
ENGINE_LOG_DEBUG << "MySQL connection pool: maximum pool size = " << std::to_string(maxPoolSize);
|
||||
try {
|
||||
|
||||
CleanUp();
|
||||
if (mode_ != Options::MODE::READ_ONLY) {
|
||||
CleanUp();
|
||||
}
|
||||
|
||||
{
|
||||
ScopedConnection connectionPtr(*mysql_connection_pool_, safe_grab);
|
||||
@ -457,7 +459,7 @@ namespace meta {
|
||||
} //Scoped Connection
|
||||
|
||||
|
||||
if (mode_ != Options::MODE::SINGLE) {
|
||||
if (mode_ == Options::MODE::CLUSTER) {
|
||||
DeleteTableFiles(table_id);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user