]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: add dec_all_refcount when the head is deleting in _rollback_to()
authormyoungwon oh <ohmyoungwon@gmail.com>
Sun, 21 Feb 2021 06:13:13 +0000 (15:13 +0900)
committermyoungwon oh <ohmyoungwon@gmail.com>
Mon, 29 Mar 2021 08:17:34 +0000 (17:17 +0900)
Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
src/osd/PrimaryLogPG.cc

index f8f67fde35fe2629db44b67540ead809ff44d8a3..7ab35bc0e17a4148246532059700a3db05f74e19 100644 (file)
@@ -8267,6 +8267,9 @@ int PrimaryLogPG::_rollback_to(OpContext *ctx, ceph_osd_op& op)
 
       if (obs.exists) {
        t->remove(soid);
+       if (obs.oi.has_manifest()) {
+         dec_all_refcount_manifest(obs.oi, ctx);
+       }
       }
       t->clone(soid, rollback_to_sobject);
       t->add_obc(rollback_to);