From 80e724b742edd531d4eae52b1aab5b1b0721dc33 Mon Sep 17 00:00:00 2001 From: myoungwon oh Date: Mon, 22 Feb 2021 23:39:41 +0900 Subject: [PATCH] osd: fix not to decrement num_objects_dirty in finish_set_dedup Signed-off-by: Myoungwon Oh --- src/osd/PrimaryLogPG.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index a76895abd397f..526e5ae45ad33 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. -- 2.39.5