From 1a8c1b0817926abfab9fbfc69dea8d760a6210d5 Mon Sep 17 00:00:00 2001 From: Dhruba Borthakur Date: Sun, 6 Oct 2013 01:12:02 -0700 Subject: [PATCH] Unit test failure in DBTest.NumImmutableMemTable. Summary: Previous patch introduced a unit test failure in DBTest.NumImmutableMemTable because of change in property names. Test Plan: Reviewers: CC: Task ID: # Blame Rev: --- db/db_test.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/db/db_test.cc b/db/db_test.cc index 9158693f1..0df070a96 100644 --- a/db/db_test.cc +++ b/db/db_test.cc @@ -1436,19 +1436,19 @@ TEST(DBTest, NumImmutableMemTable) { std::string num; ASSERT_OK(dbfull()->Put(writeOpt, "k1", big_value)); - ASSERT_TRUE(dbfull()->GetProperty("leveldb.num-immutable-mem-table", &num)); + ASSERT_TRUE(dbfull()->GetProperty("rocksdb.num-immutable-mem-table", &num)); ASSERT_EQ(num, "0"); ASSERT_OK(dbfull()->Put(writeOpt, "k2", big_value)); - ASSERT_TRUE(dbfull()->GetProperty("leveldb.num-immutable-mem-table", &num)); + ASSERT_TRUE(dbfull()->GetProperty("rocksdb.num-immutable-mem-table", &num)); ASSERT_EQ(num, "1"); ASSERT_OK(dbfull()->Put(writeOpt, "k3", big_value)); - ASSERT_TRUE(dbfull()->GetProperty("leveldb.num-immutable-mem-table", &num)); + ASSERT_TRUE(dbfull()->GetProperty("rocksdb.num-immutable-mem-table", &num)); ASSERT_EQ(num, "2"); dbfull()->Flush(FlushOptions()); - ASSERT_TRUE(dbfull()->GetProperty("leveldb.num-immutable-mem-table", &num)); + ASSERT_TRUE(dbfull()->GetProperty("rocksdb.num-immutable-mem-table", &num)); ASSERT_EQ(num, "0"); } while (ChangeCompactOptions()); }