Need more data in memtable to flush due to 11da8b

main
Igor Canadi 11 years ago
parent e1f56e12cf
commit f071a20f6e
  1. 6
      db/column_family_test.cc

@ -729,7 +729,7 @@ TEST(ColumnFamilyTest, DifferentCompactionStyles) {
ASSERT_EQ(NumTableFilesAtLevel(0, 0), 0);
ASSERT_EQ(NumTableFilesAtLevel(1, 0), 0);
// write some new keys into level 0
PutRandomData(0, 100, 4096);
PutRandomData(0, 120, 4096);
ASSERT_OK(Flush(0));
WaitForCompaction();
// remember number of files in each level
@ -742,14 +742,14 @@ TEST(ColumnFamilyTest, DifferentCompactionStyles) {
// SETUP column family "one" -- universal style
for (int i = 0; i < one.level0_file_num_compaction_trigger - 1; ++i) {
PutRandomData(1, 12, 10000);
PutRandomData(1, 20, 10000);
WaitForFlush(1);
ASSERT_EQ(std::to_string(i + 1), FilesPerLevel(1));
}
// SETUP column family "two" -- level style with 4 levels
for (int i = 0; i < two.level0_file_num_compaction_trigger - 1; ++i) {
PutRandomData(2, 12, 10000);
PutRandomData(2, 20, 10000);
WaitForFlush(2);
ASSERT_EQ(std::to_string(i + 1), FilesPerLevel(2));
}

Loading…
Cancel
Save