提交 f00ca24f 编写于 作者: Z zhiru

Disable cleanup if mode is read only


Former-commit-id: 09655e2bb8a52466c1732c829519742867cf07a3
上级 6c88dc1e
...@@ -25,6 +25,7 @@ Please mark all change in change log and use the ticket from JIRA. ...@@ -25,6 +25,7 @@ Please mark all change in change log and use the ticket from JIRA.
- MS-90 - Fix arch match incorrect on ARM - MS-90 - Fix arch match incorrect on ARM
- MS-99 - Fix compilation bug - MS-99 - Fix compilation bug
- MS-110 - Avoid huge file size - MS-110 - Avoid huge file size
- MS-148 - Disable cleanup if mode is read only
## Improvement ## Improvement
- MS-82 - Update server startup welcome message - MS-82 - Update server startup welcome message
......
...@@ -162,7 +162,9 @@ namespace meta { ...@@ -162,7 +162,9 @@ namespace meta {
ENGINE_LOG_DEBUG << "MySQL connection pool: maximum pool size = " << std::to_string(maxPoolSize); ENGINE_LOG_DEBUG << "MySQL connection pool: maximum pool size = " << std::to_string(maxPoolSize);
try { try {
if (mode_ != Options::MODE::READ_ONLY) {
CleanUp(); CleanUp();
}
{ {
ScopedConnection connectionPtr(*mysql_connection_pool_, safe_grab); ScopedConnection connectionPtr(*mysql_connection_pool_, safe_grab);
...@@ -457,7 +459,7 @@ namespace meta { ...@@ -457,7 +459,7 @@ namespace meta {
} //Scoped Connection } //Scoped Connection
if (mode_ != Options::MODE::SINGLE) { if (mode_ == Options::MODE::CLUSTER) {
DeleteTableFiles(table_id); DeleteTableFiles(table_id);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册