From 058c5f277f3a8d5e39c87a25f9d64020edadfc9d 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 (cherry picked from commit bde4c5bf9123bfa03189accd064b813a0d3179b9) --- 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 98be34bf4c2..cd45c7bbfbc 100644 --- a/src/rgw/rgw_gc.cc +++ b/src/rgw/rgw_gc.cc @@ -479,6 +479,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