From 6cb50d74a39166c1ba09a47bd3be4f935a53addb Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Thu, 3 Apr 2014 10:13:57 -0700 Subject: [PATCH] ReplicatedPG::_delete_oid: adjust num_object_clones Signed-off-by: Samuel Just --- src/osd/ReplicatedPG.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 61dbd0756347..72b55cef2dea 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -4520,6 +4520,8 @@ inline int ReplicatedPG::_delete_oid(OpContext *ctx, bool no_whiteout) } ctx->delta_stats.num_objects--; + if (soid.is_snap()) + ctx->delta_stats.num_object_clones--; if (oi.is_whiteout()) { dout(20) << __func__ << " deleting whiteout on " << soid << dendl; ctx->delta_stats.num_whiteouts--; -- 2.47.3