mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
feat(db): add archive post merge and build index
Former-commit-id: 32678939225459bbfb82d491c53b912633fdb395
This commit is contained in:
parent
3a658e7c56
commit
0a7f334697
@ -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();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user