From bde4c5bf9123bfa03189accd064b813a0d3179b9 Mon Sep 17 00:00:00 2001 From: Pritha Srivastava Date: Fri, 25 Sep 2020 13:21:18 +0530 Subject: [PATCH] rgw/gc: fix for incrementing the perf counter 'gc_retire_object' in the new gc queue code for omap offload, when gc objects from queue are deleted. This was missed out initially. Fixes: https://tracker.ceph.com/issues/47908 Signed-off-by: Pritha Srivastava --- src/rgw/rgw_gc.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/rgw/rgw_gc.cc b/src/rgw/rgw_gc.cc index b7b89e7b869..b4df200e9ff 100644 --- a/src/rgw/rgw_gc.cc +++ b/src/rgw/rgw_gc.cc @@ -480,6 +480,10 @@ public: index << " ret=" << ret << dendl; return ret; } + if (perfcounter) { + /* log the count of tags retired for rate estimation */ + perfcounter->inc(l_rgw_gc_retire, num_entries); + } return 0; } }; // class RGWGCIOManger -- 2.47.3