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