提交 8d8d4e45 编写于 作者: Y Yueh-Hsuan Chiang

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
上级 ab946af0
......@@ -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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册