diff --git a/db/internal_stats.cc b/db/internal_stats.cc index ca2854265..b8b60974e 100644 --- a/db/internal_stats.cc +++ b/db/internal_stats.cc @@ -1738,7 +1738,7 @@ void InternalStats::DumpCFMapStats( assert(vstorage); int num_levels_to_check = - (cfd_->ioptions()->compaction_style != kCompactionStyleFIFO) + (cfd_->ioptions()->compaction_style == kCompactionStyleLevel) ? vstorage->num_levels() - 1 : 1;