mirror of https://github.com/milvus-io/milvus.git
Disable cleanup if mode is read only
Former-commit-id: 2dfd7154e07274db8a06f280217c1c8ce05c0b33pull/191/head
parent
e8f4a76c9e
commit
9c9aac92b9
|
@ -1814,8 +1814,10 @@ namespace meta {
|
||||||
|
|
||||||
MySQLMetaImpl::~MySQLMetaImpl() {
|
MySQLMetaImpl::~MySQLMetaImpl() {
|
||||||
// std::lock_guard<std::recursive_mutex> lock(mysql_mutex);
|
// std::lock_guard<std::recursive_mutex> lock(mysql_mutex);
|
||||||
|
if (mode_ != Options::MODE::READ_ONLY) {
|
||||||
CleanUp();
|
CleanUp();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace meta
|
} // namespace meta
|
||||||
} // namespace engine
|
} // namespace engine
|
||||||
|
|
Loading…
Reference in New Issue