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:
main
Dhruba Borthakur 12 years ago
parent 0f8e4721a5
commit 9c6c232e47
  1. 4
      db/db_statistics.h
  2. 2
      util/ldb_cmd.cc

@ -31,12 +31,12 @@ class DBStatistics: public Statistics {
} }
long getTickerCount(Tickers tickerType) { long getTickerCount(Tickers tickerType) {
assert(tickerType < MAX_NO_TICKERS); assert(tickerType < TICKER_ENUM_MAX);
return allTickers_[tickerType].getCount(); return allTickers_[tickerType].getCount();
} }
void recordTick(Tickers tickerType) { void recordTick(Tickers tickerType) {
assert(tickerType < MAX_NO_TICKERS); assert(tickerType < TICKER_ENUM_MAX);
allTickers_[tickerType].recordTick(); allTickers_[tickerType].recordTick();
} }

@ -252,7 +252,7 @@ leveldb::Options ReduceDBLevels::PrepareOptionsForOpenDB() {
leveldb::Options opt = LDBCommand::PrepareOptionsForOpenDB(); leveldb::Options opt = LDBCommand::PrepareOptionsForOpenDB();
opt.num_levels = old_levels_; opt.num_levels = old_levels_;
// Disable size compaction // 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_bytes_for_level_multiplier = 1;
opt.max_mem_compaction_level = 0; opt.max_mem_compaction_level = 0;
return opt; return opt;

Loading…
Cancel
Save