提交 7506198d 编写于 作者: D Danny Al-Gaaf

cuckoo_table_db_test.cc: add flush after delete

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: NDanny Al-Gaaf <danny.al-gaaf@bisect.de>
上级 1f963305
...@@ -218,6 +218,7 @@ TEST(CuckooTableDBTest, Uint64Comparator) { ...@@ -218,6 +218,7 @@ TEST(CuckooTableDBTest, Uint64Comparator) {
// Add more keys. // Add more keys.
ASSERT_OK(Delete(Uint64Key(2))); // Delete. ASSERT_OK(Delete(Uint64Key(2))); // Delete.
dbfull()->TEST_FlushMemTable();
ASSERT_OK(Put(Uint64Key(3), "v0")); // Update. ASSERT_OK(Put(Uint64Key(3), "v0")); // Update.
ASSERT_OK(Put(Uint64Key(4), "v4")); ASSERT_OK(Put(Uint64Key(4), "v4"));
dbfull()->TEST_FlushMemTable(); dbfull()->TEST_FlushMemTable();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册