From 005534856a64ae0f6bd4a56074ab865fe37d8056 Mon Sep 17 00:00:00 2001 From: Xuehan Xu Date: Mon, 8 Feb 2021 14:59:48 +0800 Subject: [PATCH] crimson/osd: make sure ox be removed after all continuations are finished in PG::do_osd_ops Signed-off-by: Xuehan Xu --- src/crimson/osd/pg.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.47.3