From b3f7582be3066315d65b710e91c80f489184968e Mon Sep 17 00:00:00 2001 From: Wesley <10225102463@stu.ecnu.edu.cn> Date: Sun, 3 Nov 2024 04:35:36 +0800 Subject: [PATCH] slight change --- db/db_impl.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db/db_impl.cc b/db/db_impl.cc index de87e07..72526c1 100644 --- a/db/db_impl.cc +++ b/db/db_impl.cc @@ -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; }