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:
Dhruba Borthakur 2012-11-11 00:20:40 -08:00
parent 0f8e4721a5
commit 9c6c232e47
2 changed files with 3 additions and 3 deletions

View File

@ -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();
}

View File

@ -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;