]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: bluestore_buffer_hit_bytes perf counter doesn't reset 23772/head
authorIgor Fedotov <ifedotov@suse.com>
Tue, 14 Aug 2018 20:13:12 +0000 (23:13 +0300)
committerIgor Fedotov <ifedotov@suse.com>
Tue, 28 Aug 2018 12:27:26 +0000 (15:27 +0300)
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
(cherry picked from commit a09c29fe20dadf68cbe01affaad5bd253b84fe02)

src/os/bluestore/BlueStore.cc

index 1b06d4bbdc3ca359ed6a864bb63c31067d8efb35..5173594e625d5e54472d5de2886838301686f59d 100644 (file)
@@ -4095,9 +4095,9 @@ void BlueStore::_init_logger()
            "Number of buffers in cache");
   b.add_u64(l_bluestore_buffer_bytes, "bluestore_buffer_bytes",
            "Number of buffer bytes in cache", NULL, 0, unit_t(BYTES));
-  b.add_u64(l_bluestore_buffer_hit_bytes, "bluestore_buffer_hit_bytes",
+  b.add_u64_counter(l_bluestore_buffer_hit_bytes, "bluestore_buffer_hit_bytes",
            "Sum for bytes of read hit in the cache", NULL, 0, unit_t(BYTES));
-  b.add_u64(l_bluestore_buffer_miss_bytes, "bluestore_buffer_miss_bytes",
+  b.add_u64_counter(l_bluestore_buffer_miss_bytes, "bluestore_buffer_miss_bytes",
            "Sum for bytes of read missed in the cache", NULL, 0, unit_t(BYTES));
 
   b.add_u64_counter(l_bluestore_write_big, "bluestore_write_big",