From: Pritha Srivastava Date: Fri, 25 Sep 2020 07:51:18 +0000 (+0530) Subject: rgw/gc: fix for incrementing the perf counter 'gc_retire_object' X-Git-Tag: v15.2.8~5^2~1^2~27^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=058c5f277f3a8d5e39c87a25f9d64020edadfc9d;p=ceph.git 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) --- diff --git a/src/rgw/rgw_gc.cc b/src/rgw/rgw_gc.cc index 98be34bf4c28..cd45c7bbfbc8 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