diff --git a/db/db_impl.cc b/db/db_impl.cc index 4c7488fa9..6ed88da43 100644 --- a/db/db_impl.cc +++ b/db/db_impl.cc @@ -2468,7 +2468,7 @@ Status DBImpl::Write(const WriteOptions& options, WriteBatch* my_batch) { // have succeeded in memtable but Status reports error for all writes. throw std::runtime_error("In memory WriteBatch corruption!"); } - RecordTick(options_.statistics, SEQUENCE_NUMBER, my_batch_count); + SetTickerCount(options_.statistics, SEQUENCE_NUMBER, last_sequence); versions_->SetLastSequence(last_sequence); last_flushed_sequence_ = current_sequence; } diff --git a/include/rocksdb/statistics.h b/include/rocksdb/statistics.h index 6b0f9d286..e665278b0 100644 --- a/include/rocksdb/statistics.h +++ b/include/rocksdb/statistics.h @@ -75,8 +75,6 @@ const std::vector> TickersNameMap = { { BLOCK_CACHE_MISS, "rocksdb.block.cache.miss" }, { BLOCK_CACHE_HIT, "rocksdb.block.cache.hit" }, { BLOOM_FILTER_USEFUL, "rocksdb.bloom.filter.useful" }, - { BLOOM_FILTER_PREFIX_CHECKED, "rocksdb.bloom.filter.prefix.checked" }, - { BLOOM_FILTER_PREFIX_USEFUL, "rocksdb.bloom.filter.prefix.useful" }, { COMPACTION_KEY_DROP_NEWER_ENTRY, "rocksdb.compaction.key.drop.new" }, { COMPACTION_KEY_DROP_OBSOLETE, "rocksdb.compaction.key.drop.obsolete" }, { COMPACTION_KEY_DROP_USER, "rocksdb.compaction.key.drop.user" }, @@ -97,7 +95,9 @@ const std::vector> TickersNameMap = { { NUMBER_MULTIGET_BYTES_READ, "rocksdb.number.multiget.bytes.read" }, { NUMBER_FILTERED_DELETES, "rocksdb.number.deletes.filtered" }, { NUMBER_MERGE_FAILURES, "rocksdb.number.merge.failures" }, - { SEQUENCE_NUMBER, "rocksdb.sequence.number" } + { SEQUENCE_NUMBER, "rocksdb.sequence.number" }, + { BLOOM_FILTER_PREFIX_CHECKED, "rocksdb.bloom.filter.prefix.checked" }, + { BLOOM_FILTER_PREFIX_USEFUL, "rocksdb.bloom.filter.prefix.useful" } }; /**