From: Xuehan Xu Date: Mon, 8 Feb 2021 06:59:48 +0000 (+0800) Subject: crimson/osd: make sure ox be removed after all continuations are finished in PG:... X-Git-Tag: v17.1.0~3033^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F39347%2Fhead;p=ceph.git crimson/osd: make sure ox be removed after all continuations are finished in PG::do_osd_ops Signed-off-by: Xuehan Xu --- diff --git a/src/crimson/osd/pg.cc b/src/crimson/osd/pg.cc index 88e869f6b05f6..353db16da5674 100644 --- a/src/crimson/osd/pg.cc +++ b/src/crimson/osd/pg.cc @@ -780,7 +780,7 @@ PG::do_osd_ops( return rep_repair_primary_object(m, obc->obs.oi.soid, obc->obs.oi.version).then([]() -> PG::do_osd_ops_ertr::future> { return crimson::ct_error::eagain::make(); }); - }), OpsExecuter::osd_op_errorator::all_same_way([ox = ox.get(), + }), OpsExecuter::osd_op_errorator::all_same_way([ox = std::move(ox), m, obc, this] (const std::error_code& e) {