Disable cleanup if mode is read only

Former-commit-id: 2dfd7154e07274db8a06f280217c1c8ce05c0b33
pull/191/head
zhiru 2019-07-03 14:27:19 +08:00 committed by jinhai
parent e8f4a76c9e
commit 9c9aac92b9
1 changed files with 3 additions and 1 deletions

View File

@ -1814,8 +1814,10 @@ namespace meta {
MySQLMetaImpl::~MySQLMetaImpl() {
// std::lock_guard<std::recursive_mutex> lock(mysql_mutex);
if (mode_ != Options::MODE::READ_ONLY) {
CleanUp();
}
}
} // namespace meta
} // namespace engine