]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/gc: fix for incrementing the perf counter 'gc_retire_object' 37409/head
authorPritha Srivastava <prsrivas@redhat.com>
Fri, 25 Sep 2020 07:51:18 +0000 (13:21 +0530)
committerPritha Srivastava <prsrivas@redhat.com>
Tue, 20 Oct 2020 06:23:11 +0000 (11:53 +0530)
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 <prsrivas@redhat.com>
src/rgw/rgw_gc.cc

index b7b89e7b8697741ab2b50b823e3806a1b197e496..b4df200e9fffb590d88f77156ba6eefc8ccb15f3 100644 (file)
@@ -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