Skip to content

Commit

Permalink
cuckoo_table_db_test.cc: add flush after delete
Browse files Browse the repository at this point in the history
It seems that a FlushMemTable() call is needed in the
Uint64Comparator test after call Delete(). Otherwise the later
via Put() added keys get lost with the next FlushMemTable()
call before the check.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
  • Loading branch information
dalgaaf committed Sep 30, 2014
1 parent 1f96330 commit 7506198
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions db/cuckoo_table_db_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ TEST(CuckooTableDBTest, Uint64Comparator) {

// Add more keys.
ASSERT_OK(Delete(Uint64Key(2))); // Delete.
dbfull()->TEST_FlushMemTable();
ASSERT_OK(Put(Uint64Key(3), "v0")); // Update.
ASSERT_OK(Put(Uint64Key(4), "v4"));
dbfull()->TEST_FlushMemTable();
Expand Down

0 comments on commit 7506198

Please sign in to comment.