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
This commit is contained in:
Yueh-Hsuan Chiang 2015-06-02 14:26:54 -07:00
parent ab946af08a
commit 8d8d4e45ba

View File

@ -4,7 +4,6 @@
#pragma once
#ifndef ROCKSDB_LITE
#include <string>
#include <vector>
@ -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<std::string> input_files;
// the names of the compaction output files.
std::vector<std::string> 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<std::string> input_files;
// the names of the compaction output files.
std::vector<std::string> 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