Make compaction_picker_test runnable in ROCKSDB_LITE

Summary: Remove universal and fifo compaction tests from ROCKSDB_LITE since they are not supported

Test Plan: compaction_picker_test

Reviewers: sdong, igor, yhchiang

Reviewed By: yhchiang

Subscribers: dhruba

Differential Revision: https://reviews.facebook.net/D42129
main
Islam AbdelRahman 9 years ago
parent 6e9fbeb27c
commit 20922c4a5a
  1. 3
      db/compaction_picker_test.cc

@ -346,6 +346,8 @@ TEST_F(CompactionPickerTest, LevelTriggerDynamic4) {
ASSERT_EQ(num_levels - 1, compaction->output_level()); ASSERT_EQ(num_levels - 1, compaction->output_level());
} }
// Universal and FIFO Compactions are not supported in ROCKSDB_LITE
#ifndef ROCKSDB_LITE
TEST_F(CompactionPickerTest, NeedsCompactionUniversal) { TEST_F(CompactionPickerTest, NeedsCompactionUniversal) {
NewVersionStorage(1, kCompactionStyleUniversal); NewVersionStorage(1, kCompactionStyleUniversal);
UniversalCompactionPicker universal_compaction_picker( UniversalCompactionPicker universal_compaction_picker(
@ -455,6 +457,7 @@ TEST_F(CompactionPickerTest, NeedsCompactionFIFO) {
vstorage_->CompactionScore(0) >= 1); vstorage_->CompactionScore(0) >= 1);
} }
} }
#endif // ROCKSDB_LITE
// This test exhibits the bug where we don't properly reset parent_index in // This test exhibits the bug where we don't properly reset parent_index in
// PickCompaction() // PickCompaction()

Loading…
Cancel
Save