]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: fix bluefs perf counters about l_bluefs_log_compactions 57195/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:29:20 +0000 (17:29 +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 bb3fd8a99746bf22a351045903f699550f4e2a30..a8b1fb25ee85ee09528b080231e1813658949cf6 100644 (file)
@@ -2763,7 +2763,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.