Browse Source

slight change

main
李畅 3 weeks ago
parent
commit
b3f7582be3
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      db/db_impl.cc

+ 2
- 2
db/db_impl.cc View File

@ -602,9 +602,9 @@ void DBImpl::CompactRange(const Slice* begin, const Slice* end) {
void DBImpl::TEST_CompactRange(int level, const Slice* begin,
const Slice* end) {
assert(level >= 0);
assert(level <= config::kNumLevels);
assert(level < config::kNumLevels);
if (level == config::kNumLevels) {
if (level + 1 == config::kNumLevels) {
// TTL: TODO: update files in the last level
return;
}

Loading…
Cancel
Save