Fixed compile warning in compact_files_example.cc

Summary: Fixed compile warning in compact_files_example.cc

Test Plan: compact_files_example

Reviewers: sdong, igor

Subscribers: dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D39309
main
Yueh-Hsuan Chiang 10 years ago
parent 2ecac9f96d
commit 495ce6018a
  1. 28
      examples/compact_files_example.cc

@ -14,7 +14,7 @@
using namespace rocksdb; using namespace rocksdb;
std::string kDBPath = "/tmp/rocksdb_compact_files_example"; std::string kDBPath = "/tmp/rocksdb_compact_files_example";
class CompactionTask; struct CompactionTask;
// This is an example interface of external-compaction algorithm. // This is an example interface of external-compaction algorithm.
// Compaction algorithm can be implemented outside the core-RocksDB // Compaction algorithm can be implemented outside the core-RocksDB
@ -35,19 +35,19 @@ class Compactor : public EventListener {
// Example structure that describes a compaction task. // Example structure that describes a compaction task.
struct CompactionTask { struct CompactionTask {
CompactionTask( CompactionTask(
DB* db, Compactor* compactor, DB* _db, Compactor* _compactor,
const std::string& column_family_name, const std::string& _column_family_name,
const std::vector<std::string>& input_file_names, const std::vector<std::string>& _input_file_names,
const int output_level, const int _output_level,
const CompactionOptions& compact_options, const CompactionOptions& _compact_options,
bool retry_on_fail) bool _retry_on_fail)
: db(db), : db(_db),
compactor(compactor), compactor(_compactor),
column_family_name(column_family_name), column_family_name(_column_family_name),
input_file_names(input_file_names), input_file_names(_input_file_names),
output_level(output_level), output_level(_output_level),
compact_options(compact_options), compact_options(_compact_options),
retry_on_fail(false) {} retry_on_fail(_retry_on_fail) {}
DB* db; DB* db;
Compactor* compactor; Compactor* compactor;
const std::string& column_family_name; const std::string& column_family_name;

Loading…
Cancel
Save