From c2328c5187468f64311a24f4810e951ee6fc129a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E9=99=88=E5=AA=9B?= <10225101469@stu.ecnu.edu.cn> Date: Tue, 29 Oct 2024 10:39:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9test=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- leveldb_base/test/ttl_test.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/leveldb_base/test/ttl_test.cc b/leveldb_base/test/ttl_test.cc index 5460d7d..acf5fe0 100644 --- a/leveldb_base/test/ttl_test.cc +++ b/leveldb_base/test/ttl_test.cc @@ -45,7 +45,7 @@ void GetData(DB *db, int size = (1 << 30)) { db->Get(readOptions, key, &value); } } -// 暂时先注释掉写入Test-橙 + TEST(TestTTL, ReadTTL) { DB *db; if(OpenDB("testdb", &db).ok() == false) { @@ -92,7 +92,7 @@ TEST(TestTTL, CompactionTTL) { uint64_t ttl = 20; InsertData(db, ttl); - //这里为什么要定义两个ranges1?-橙 + //这里为什么要定义两个ranges1?-朱陈媛 leveldb::Range ranges[1]; ranges[0] = leveldb::Range("-", "A"); uint64_t sizes[1]; @@ -103,7 +103,7 @@ TEST(TestTTL, CompactionTTL) { Env::Default()->SleepForMicroseconds(ttl * 1000000); db->CompactRange(nullptr, nullptr); - // 先注释掉重复定义的-橙 + // 先注释掉重复定义的-朱陈媛 // leveldb::Range ranges[1]; ranges[0] = leveldb::Range("-", "A"); // uint64_t sizes[1];