From: myoungwon oh Date: Sun, 21 Feb 2021 06:13:13 +0000 (+0900) Subject: osd: add dec_all_refcount when the head is deleting in _rollback_to() X-Git-Tag: v17.1.0~2307^2~22 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1b0896f8ced4b3795371bd4b8489607c69eb4774;p=ceph.git osd: add dec_all_refcount when the head is deleting in _rollback_to() Signed-off-by: Myoungwon Oh --- diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index f8f67fde35fe..7ab35bc0e17a 100644 --- a/src/osd/PrimaryLogPG.cc +++ b/src/osd/PrimaryLogPG.cc @@ -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);