mirror of https://github.com/facebook/rocksdb.git
Compilation error while compiling with OPT=-g
Summary: make clean check OPT=-g fails leveldb::DBStatistics::getTickerCount(leveldb::Tickers)’: ./db/db_statistics.h:34: error: ‘MAX_NO_TICKERS’ was not declared in this scope util/ldb_cmd.cc:255: warning: left shift count >= width of type Test Plan: make clean check OPT=-g Reviewers: CC: Task ID: # Blame Rev:
This commit is contained in:
parent
0f8e4721a5
commit
9c6c232e47
|
@ -31,12 +31,12 @@ class DBStatistics: public Statistics {
|
|||
}
|
||||
|
||||
long getTickerCount(Tickers tickerType) {
|
||||
assert(tickerType < MAX_NO_TICKERS);
|
||||
assert(tickerType < TICKER_ENUM_MAX);
|
||||
return allTickers_[tickerType].getCount();
|
||||
}
|
||||
|
||||
void recordTick(Tickers tickerType) {
|
||||
assert(tickerType < MAX_NO_TICKERS);
|
||||
assert(tickerType < TICKER_ENUM_MAX);
|
||||
allTickers_[tickerType].recordTick();
|
||||
}
|
||||
|
||||
|
|
|
@ -252,7 +252,7 @@ leveldb::Options ReduceDBLevels::PrepareOptionsForOpenDB() {
|
|||
leveldb::Options opt = LDBCommand::PrepareOptionsForOpenDB();
|
||||
opt.num_levels = old_levels_;
|
||||
// Disable size compaction
|
||||
opt.max_bytes_for_level_base = 1 << 60;
|
||||
opt.max_bytes_for_level_base = 1L << 60;
|
||||
opt.max_bytes_for_level_multiplier = 1;
|
||||
opt.max_mem_compaction_level = 0;
|
||||
return opt;
|
||||
|
|
Loading…
Reference in New Issue