From ec903d0c446c0818b411e54ac276228a5890c6bc Mon Sep 17 00:00:00 2001 From: Matthew V Date: Wed, 24 Dec 2014 18:52:07 -0500 Subject: [PATCH] update db_test for Basho force of all file into level 0 and 1 compaction --- db/db_test.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/db/db_test.cc b/db/db_test.cc index 95d4df4c..317354ba 100644 --- a/db/db_test.cc +++ b/db/db_test.cc @@ -1428,12 +1428,15 @@ TEST(DBTest, ManualCompaction) { ASSERT_EQ("3", FilesPerLevel()); // Compaction range falls before files + // (Basho compacts all at zero no matter what) Compact("", "c"); - ASSERT_EQ("3", FilesPerLevel()); + //ASSERT_EQ("3", FilesPerLevel()); + ASSERT_EQ("0,1", FilesPerLevel()); // Compaction range falls after files Compact("r", "z"); - ASSERT_EQ("3", FilesPerLevel()); + //ASSERT_EQ("3", FilesPerLevel()); + ASSERT_EQ("0,1", FilesPerLevel()); // Compaction range overlaps files Compact("p1", "p9");