From 1b0896f8ced4b3795371bd4b8489607c69eb4774 Mon Sep 17 00:00:00 2001 From: myoungwon oh Date: Sun, 21 Feb 2021 15:13:13 +0900 Subject: [PATCH] osd: add dec_all_refcount when the head is deleting in _rollback_to() Signed-off-by: Myoungwon Oh --- src/osd/PrimaryLogPG.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index f8f67fde35fe2..7ab35bc0e17a4 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); -- 2.39.5