From 2a5915049ea917a677278a1a002725633bb0cd33 Mon Sep 17 00:00:00 2001 From: Huachao Huang Date: Mon, 11 Sep 2017 11:31:47 -0700 Subject: [PATCH] Fix missing BYTES_PER_WRITE for pipeline write Summary: Closes https://github.com/facebook/rocksdb/pull/2862 Differential Revision: D5805638 Pulled By: yiwu-arbug fbshipit-source-id: 72d38c74395690023a719f400daff01527645a17 --- db/db_impl_write.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/db/db_impl_write.cc b/db/db_impl_write.cc index 8a11948f7..71ee80c49 100644 --- a/db/db_impl_write.cc +++ b/db/db_impl_write.cc @@ -385,6 +385,7 @@ Status DBImpl::PipelinedWriteImpl(const WriteOptions& write_options, RecordTick(stats_, NUMBER_KEYS_WRITTEN, total_count); stats->AddDBStats(InternalStats::BYTES_WRITTEN, total_byte_size); RecordTick(stats_, BYTES_WRITTEN, total_byte_size); + MeasureTime(stats_, BYTES_PER_WRITE, total_byte_size); PERF_TIMER_STOP(write_pre_and_post_process_time);