diff --git a/db/db_test.cc b/db/db_test.cc index 3f61b2394..faa24c6ba 100644 --- a/db/db_test.cc +++ b/db/db_test.cc @@ -843,8 +843,7 @@ TEST(DBTest, KeyMayExist) { value.clear(); value_found = false; ASSERT_TRUE(db_->KeyMayExist(ropts, "a", &value, &value_found)); - ASSERT_TRUE(value_found); - ASSERT_EQ("b", value); + ASSERT_TRUE(!value_found); ASSERT_OK(db_->Delete(WriteOptions(), "a")); ASSERT_TRUE(!db_->KeyMayExist(ropts, "a", &value)); diff --git a/table/table.cc b/table/table.cc index 972c88080..6d7ddb6ac 100644 --- a/table/table.cc +++ b/table/table.cc @@ -421,7 +421,7 @@ Status Table::InternalGet(const ReadOptions& options, const Slice& k, } else { bool didIO = false; Iterator* block_iter = BlockReader(this, options, iiter->value(), - &didIO, no_io); + &didIO, false, no_io); if (no_io && !block_iter) { // couldn't get block from block_cache // Update Saver.state to Found because we are only looking for whether