From: myoungwon oh Date: Mon, 22 Feb 2021 14:39:41 +0000 (+0900) Subject: osd: fix not to decrement num_objects_dirty in finish_set_dedup X-Git-Tag: v17.1.0~2307^2~20 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=80e724b742edd531d4eae52b1aab5b1b0721dc33;p=ceph.git osd: fix not to decrement num_objects_dirty in finish_set_dedup Signed-off-by: Myoungwon Oh --- diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index a76895abd397..526e5ae45ad3 100644 --- a/src/osd/PrimaryLogPG.cc +++ b/src/osd/PrimaryLogPG.cc @@ -10450,6 +10450,7 @@ int PrimaryLogPG::finish_set_dedup(hobject_t oid, int r, ceph_tid_t tid, uint64_ ctx->at_version = get_next_version(); ctx->new_obs = obc->obs; ctx->new_obs.oi.clear_flag(object_info_t::FLAG_DIRTY); + --ctx->delta_stats.num_objects_dirty; /* * Let's assume that there is a manifest snapshotted object, and we issue tier_flush() to head.