Skip to content

Commit

Permalink
update db_test for Basho force of all file into level 0 and 1 compaction
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew V committed Dec 24, 2014
1 parent 2c0aa65 commit ec903d0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions db/db_test.cc
Expand Up @@ -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");
Expand Down

0 comments on commit ec903d0

Please sign in to comment.