]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd: make sure ox be removed after all continuations are finished in PG:... 39347/head
authorXuehan Xu <xxhdx1985126@gmail.com>
Mon, 8 Feb 2021 06:59:48 +0000 (14:59 +0800)
committerXuehan Xu <xxhdx1985126@gmail.com>
Mon, 8 Feb 2021 07:01:59 +0000 (15:01 +0800)
Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
src/crimson/osd/pg.cc

index 88e869f6b05f6039f0eb2c401abea8e7ebe2468b..353db16da5674abeab814a1559a40d88bb9317e0 100644 (file)
@@ -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<Ref<MOSDOpReply>> {
       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) {