]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: fix not to decrement num_objects_dirty in finish_set_dedup
authormyoungwon oh <ohmyoungwon@gmail.com>
Mon, 22 Feb 2021 14:39:41 +0000 (23:39 +0900)
committermyoungwon oh <ohmyoungwon@gmail.com>
Mon, 29 Mar 2021 08:18:19 +0000 (17:18 +0900)
Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
src/osd/PrimaryLogPG.cc

index a76895abd397f145b9c8e536c1b0d0c4d9d06fb6..526e5ae45ad33749b044189d2960e2f12236481e 100644 (file)
@@ -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.