]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/gc: fix for incrementing the perf counter 'gc_retire_object' 37847/head
authorPritha Srivastava <prsrivas@redhat.com>
Fri, 25 Sep 2020 07:51:18 +0000 (13:21 +0530)
committerNathan Cutler <ncutler@suse.com>
Tue, 27 Oct 2020 08:54:43 +0000 (09:54 +0100)
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>
(cherry picked from commit bde4c5bf9123bfa03189accd064b813a0d3179b9)

src/rgw/rgw_gc.cc

index 98be34bf4c282148ace13a45ca92d05b8b76ce82..cd45c7bbfbc8932b2ee41e3282de8f8ee29be5e8 100644 (file)
@@ -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