]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: increment the dirty perf counter when cloning a dirty object in 4252/head
authorZhiqiang Wang <zhiqiang.wang@intel.com>
Thu, 2 Apr 2015 05:44:39 +0000 (13:44 +0800)
committerZhiqiang Wang <zhiqiang.wang@intel.com>
Thu, 2 Apr 2015 05:44:39 +0000 (13:44 +0800)
make_writeable

Should increment the dirty perf counter when a new dirty clone is
created.

Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
src/osd/ReplicatedPG.cc

index 54f689bf67fe9a32efa0b02921980c7894680e52..63a195e7d8e029d19dfde346fc7c005c1c934172 100644 (file)
@@ -5428,8 +5428,10 @@ void ReplicatedPG::make_writeable(OpContext *ctx)
     ctx->op_t = t;
     
     ctx->delta_stats.num_objects++;
-    if (snap_oi->is_dirty())
+    if (snap_oi->is_dirty()) {
       ctx->delta_stats.num_objects_dirty++;
+      osd->logger->inc(l_osd_tier_dirty);
+    }
     if (snap_oi->is_omap())
       ctx->delta_stats.num_objects_omap++;
     ctx->delta_stats.num_object_clones++;