提交 9b967056 编写于 作者: X Xu Peng

feat(db): add archive post merge and build index


Former-commit-id: a54382cec05b4a3e955e126ed3e8b58270b725cf
上级 7144ab8d
......@@ -326,6 +326,10 @@ Status DBImpl<EngineT>::background_merge_files(const std::string& group_id) {
merge_files(group_id, kv.first, kv.second);
}
if (has_merge) {
_pMeta->archive_files();
}
try_build_index();
_pMeta->cleanup_ttl_files(1);
......@@ -362,6 +366,7 @@ Status DBImpl<EngineT>::build_index(const meta::GroupFileSchema& file) {
<< " from file " << to_remove.file_id;
index->Cache();
_pMeta->archive_files();
return Status::OK();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册