From 4a8554d5bb3b98df4b948f7b734c6c1c25e75cd1 Mon Sep 17 00:00:00 2001 From: Abhishek Kona Date: Mon, 10 Jun 2013 13:14:14 -0700 Subject: [PATCH] [Rocksdb] fix wrong assert Summary: the assert was wrong in D11145. Broke build Test Plan: make db_bench run it Reviewers: dhruba, haobo, emayanke Reviewed By: dhruba CC: leveldb Differential Revision: https://reviews.facebook.net/D11187 --- include/leveldb/statistics.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/leveldb/statistics.h b/include/leveldb/statistics.h index 4889403da..67b5035c3 100644 --- a/include/leveldb/statistics.h +++ b/include/leveldb/statistics.h @@ -189,8 +189,8 @@ std::shared_ptr CreateDBStatistics(); inline void RecordTick(std::shared_ptr statistics, Tickers ticker, uint64_t count = 1) { - assert(HistogramsNameMap.size() == HISTOGRAM_ENUM_MAX - 1); - assert(TickersNameMap.size() == TICKER_ENUM_MAX -1); + assert(HistogramsNameMap.size() == HISTOGRAM_ENUM_MAX); + assert(TickersNameMap.size() == TICKER_ENUM_MAX); if (statistics) { statistics->recordTick(ticker, count); }