From e304dac9430ddb307e5ece3f7aec8d57bc84ec95 Mon Sep 17 00:00:00 2001 From: Andrew Kryczka Date: Thu, 17 Nov 2016 12:57:06 -0800 Subject: [PATCH] db_compaction_test --- db/db_compaction_test.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/db/db_compaction_test.cc b/db/db_compaction_test.cc index bed5350571f..9efcb9b7016 100644 --- a/db/db_compaction_test.cc +++ b/db/db_compaction_test.cc @@ -317,8 +317,7 @@ TEST_F(DBCompactionTest, TestTableReaderForCompaction) { num_table_cache_lookup = 0; num_new_table_reader = 0; ASSERT_EQ(Key(1), Get(Key(1))); - // a second table cache iterator is created for range tombstones - ASSERT_EQ(num_table_cache_lookup, 2); + ASSERT_EQ(num_table_cache_lookup, 1); ASSERT_EQ(num_new_table_reader, 0); num_table_cache_lookup = 0; @@ -337,8 +336,7 @@ TEST_F(DBCompactionTest, TestTableReaderForCompaction) { num_table_cache_lookup = 0; num_new_table_reader = 0; ASSERT_EQ(Key(1), Get(Key(1))); - // a second table cache iterator is created for range tombstones - ASSERT_EQ(num_table_cache_lookup, 2); + ASSERT_EQ(num_table_cache_lookup, 1); ASSERT_EQ(num_new_table_reader, 0); rocksdb::SyncPoint::GetInstance()->ClearAllCallBacks();