]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: fix bluefs perf counters about l_bluefs_log_compactions 57194/head
authorwanglinke <wanglinke@cmss.chinamobile.com>
Thu, 22 Feb 2024 02:19:56 +0000 (10:19 +0800)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Wed, 1 May 2024 10:27:48 +0000 (17:27 +0700)
In BlueFS::_compact_log_sync_LNF_LD,l_bluefs_log_compactions
is being counted two times.

Fixes: https://tracker.ceph.com/issues/64533
co-author: Jrchyang Yu <yuzhiqiang_yewu@cmss.chinamobile.com>
Signed-off-by: Wang Linke <wanglinke_yewu@cmss.chinamobile.com>
(cherry picked from commit d06f34c5e772bb834bd17a593801ad97e4596338)

src/os/bluestore/BlueFS.cc

index 710021f0787856bbaecce31ab7c6aa752409f6cf..5e513272a6cac5d2ac3be3e5fc69d008cbe6dbd0 100644 (file)
@@ -2700,7 +2700,6 @@ void BlueFS::_rewrite_log_and_layout_sync_LNF_LD(bool permit_dev_fallback,
 
   // we're mostly done
   dout(10) << __func__ << " log extents " << log_file->fnode.extents << dendl;
-  logger->inc(l_bluefs_log_compactions);
 
   // Part 4
   // Finalization. Release old space.