From 8d8d4e45ba24f4f7bea86774caab3788271dbf4f Mon Sep 17 00:00:00 2001 From: Yueh-Hsuan Chiang Date: Tue, 2 Jun 2015 14:26:54 -0700 Subject: [PATCH] Fixed ROCKSDB_LITE compile error due to the missing of TableFileCreationInfo Summary: Fixed ROCKSDB_LITE compile error due to the missing of TableFileCreationInfo Test Plan: make OPT=-DROCKSDB_LITE shared_lib -j32 Reviewers: sdong, igor Subscribers: dhruba, leveldb Differential Revision: https://reviews.facebook.net/D39405 --- include/rocksdb/listener.h | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/include/rocksdb/listener.h b/include/rocksdb/listener.h index 60b3e0e91..ab5e36825 100644 --- a/include/rocksdb/listener.h +++ b/include/rocksdb/listener.h @@ -4,7 +4,6 @@ #pragma once -#ifndef ROCKSDB_LITE #include #include @@ -16,19 +15,6 @@ namespace rocksdb { class DB; class Status; -struct CompactionJobInfo { - // the name of the column family where the compaction happened. - std::string cf_name; - // the status indicating whether the compaction was successful or not. - Status status; - // the output level of the compaction. - int output_level; - // the names of the compaction input files. - std::vector input_files; - // the names of the compaction output files. - std::vector output_files; -}; - struct TableFileCreationInfo { TableFileCreationInfo() = default; explicit TableFileCreationInfo(TableProperties&& prop) : @@ -48,6 +34,22 @@ struct TableFileCreationInfo { TableProperties table_properties; }; + +#ifndef ROCKSDB_LITE + +struct CompactionJobInfo { + // the name of the column family where the compaction happened. + std::string cf_name; + // the status indicating whether the compaction was successful or not. + Status status; + // the output level of the compaction. + int output_level; + // the names of the compaction input files. + std::vector input_files; + // the names of the compaction output files. + std::vector output_files; +}; + // EventListener class contains a set of call-back functions that will // be called when specific RocksDB event happens such as flush. It can // be used as a building block for developing custom features such as @@ -137,13 +139,11 @@ class EventListener { virtual ~EventListener() {} }; -} // namespace rocksdb - #else -namespace rocksdb { class EventListener { }; -} #endif // ROCKSDB_LITE + +} // namespace rocksdb -- GitLab