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
This commit is contained in:
Islam AbdelRahman 2015-07-20 10:46:09 -07:00
parent 6e9fbeb27c
commit 20922c4a5a

View File

@ -346,6 +346,8 @@ TEST_F(CompactionPickerTest, LevelTriggerDynamic4) {
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) {
NewVersionStorage(1, kCompactionStyleUniversal);
UniversalCompactionPicker universal_compaction_picker(
@ -455,6 +457,7 @@ TEST_F(CompactionPickerTest, NeedsCompactionFIFO) {
vstorage_->CompactionScore(0) >= 1);
}
}
#endif // ROCKSDB_LITE
// This test exhibits the bug where we don't properly reset parent_index in
// PickCompaction()