diff --git a/include/rocksdb/perf_context.h b/include/rocksdb/perf_context.h index aee719ff142edb011d35ea8583986419bb3bdfc5..126d16572542ea9e3742afdc7a389e310cdb5b81 100644 --- a/include/rocksdb/perf_context.h +++ b/include/rocksdb/perf_context.h @@ -78,7 +78,7 @@ struct PerfContext { uint64_t read_filter_block_nanos; // Time spent on creating data block iterator uint64_t new_table_block_iter_nanos; - // Time spent on new_table_block_iter_micros + // Time spent on creating a iterator of an SST file. uint64_t new_table_iterator_nanos; // Time spent on seeking a key in data/index blocks uint64_t block_seek_nanos; diff --git a/util/perf_context.cc b/util/perf_context.cc index 2ba35ca72415251b1bb1f1fcad2ff098f9d1bf32..643b3f00438f31b93871cb3030291919a1440b94 100644 --- a/util/perf_context.cc +++ b/util/perf_context.cc @@ -50,7 +50,7 @@ void PerfContext::Reset() { read_index_block_nanos = 0; read_filter_block_nanos = 0; new_table_block_iter_nanos = 0; - new_table_block_iter_nanos = 0; + new_table_iterator_nanos = 0; block_seek_nanos = 0; find_table_nanos = 0; #endif