提交 120ea4d0 编写于 作者: G groot

#1609 Refine Compact function

Signed-off-by: Ngroot <yihua.mo@zilliz.com>
上级 88720546
......@@ -723,12 +723,11 @@ DBImpl::Compact(const std::string& table_id) {
ENGINE_LOG_DEBUG << "Updating meta after compaction...";
status = meta_ptr_->UpdateTableFiles(files_to_update);
OngoingFileChecker::GetInstance().UnmarkOngoingFile(file);
if (!status.ok()) {
compact_status = status;
break; // meta error, could not go on
}
OngoingFileChecker::GetInstance().UnmarkOngoingFile(file);
}
OngoingFileChecker::GetInstance().UnmarkOngoingFiles(files_to_compact);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册