Browse Source

添加合并逻辑-朱陈媛

main
朱陈媛 1 month ago
parent
commit
9189610948
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      leveldb_base/db/db_impl.cc

+ 1
- 0
leveldb_base/db/db_impl.cc View File

@ -598,6 +598,7 @@ void DBImpl::CompactRange(const Slice* begin, const Slice* end) {
}
TEST_CompactMemTable(); // TODO(sanjay): Skip if memtable does not overlap
// 这个改成小于等于,test能过,但这不是改变原本的手动合并逻辑了吗?-朱陈媛
// 改了之后应该也不影响合并
for (int level = 0; level <= max_level_with_files; level++) {
TEST_CompactRange(level, begin, end);
}

Loading…
Cancel
Save