From 2bf9b968ca89a22108622b68a5308373788bcbb4 Mon Sep 17 00:00:00 2001 From: Islam AbdelRahman Date: Tue, 22 Dec 2015 11:58:13 -0800 Subject: [PATCH] Fix lite_build Summary: Fix compiling under ROCKSDB_LITE Test Plan: OPT="-DROCKSDB_LITE" make -j64 check make check -j64 Reviewers: rven, yhchiang, sdong Reviewed By: sdong Subscribers: dhruba Differential Revision: https://reviews.facebook.net/D52239 --- include/rocksdb/listener.h | 39 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/include/rocksdb/listener.h b/include/rocksdb/listener.h index 1f9b67caa..3d54f2788 100644 --- a/include/rocksdb/listener.h +++ b/include/rocksdb/listener.h @@ -40,6 +40,25 @@ struct TableFileCreationInfo { TableProperties table_properties; }; +enum class CompactionReason { + kUnknown, + // [Level] number of L0 files > level0_file_num_compaction_trigger + kLevelL0FilesNum, + // [Level] total size of level > MaxBytesForLevel() + kLevelMaxLevelSize, + // [Universal] Compacting for size amplification + kUniversalSizeAmplification, + // [Universal] Compacting for size ratio + kUniversalSizeRatio, + // [Universal] number of sorted runs > level0_file_num_compaction_trigger + kUniversalSortedRunNum, + // [FIFO] total size > max_table_files_size + kFIFOMaxSize, + // Manual compaction + kManualCompaction, + // DB::SuggestCompactRange() marked files for compaction + kFilesMarkedForCompaction, +}; #ifndef ROCKSDB_LITE @@ -81,26 +100,6 @@ struct FlushJobInfo { TableProperties table_properties; }; -enum class CompactionReason { - kUnknown, - // [Level] number of L0 files > level0_file_num_compaction_trigger - kLevelL0FilesNum, - // [Level] total size of level > MaxBytesForLevel() - kLevelMaxLevelSize, - // [Universal] Compacting for size amplification - kUniversalSizeAmplification, - // [Universal] Compacting for size ratio - kUniversalSizeRatio, - // [Universal] number of sorted runs > level0_file_num_compaction_trigger - kUniversalSortedRunNum, - // [FIFO] total size > max_table_files_size - kFIFOMaxSize, - // Manual compaction - kManualCompaction, - // DB::SuggestCompactRange() marked files for compaction - kFilesMarkedForCompaction, -}; - struct CompactionJobInfo { CompactionJobInfo() = default; explicit CompactionJobInfo(const CompactionJobStats& _stats) :