From 20922c4a5a1c5250a94b6de06d9d63978cd24f8a Mon Sep 17 00:00:00 2001 From: Islam AbdelRahman Date: Mon, 20 Jul 2015 10:46:09 -0700 Subject: [PATCH] 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 --- db/compaction_picker_test.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/db/compaction_picker_test.cc b/db/compaction_picker_test.cc index e6b31fbfa..73071a75a 100644 --- a/db/compaction_picker_test.cc +++ b/db/compaction_picker_test.cc @@ -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()