From ff3a89b99768da08977aa2163dd37178a2ea5369 Mon Sep 17 00:00:00 2001 From: Xu Peng Date: Sun, 26 May 2019 16:50:56 +0800 Subject: [PATCH] feat(db): archive after every serliazation Former-commit-id: bf5191dc707e7336d64534110aa49a2d36da1a1e --- cpp/src/db/DBImpl.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cpp/src/db/DBImpl.cpp b/cpp/src/db/DBImpl.cpp index 3673bc4ad3..4028a1bbbe 100644 --- a/cpp/src/db/DBImpl.cpp +++ b/cpp/src/db/DBImpl.cpp @@ -326,9 +326,7 @@ Status DBImpl::background_merge_files(const std::string& group_id) { merge_files(group_id, kv.first, kv.second); } - if (has_merge) { - _pMeta->archive_files(); - } + _pMeta->archive_files(); try_build_index();