]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd: capture error_code by value in PG::handle_failed_op 39827/head
authorXuehan Xu <xxhdx1985126@gmail.com>
Thu, 4 Mar 2021 09:20:28 +0000 (17:20 +0800)
committerXuehan Xu <xxhdx1985126@gmail.com>
Thu, 4 Mar 2021 09:20:28 +0000 (17:20 +0800)
Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
src/crimson/osd/pg.cc

index 63c88f2b439794dd84838d9dded485fb5ec93b3a..6ad2cad4358499b6a4ac0d8a3a40a391fa151913 100644 (file)
@@ -672,7 +672,7 @@ seastar::future<Ref<MOSDOpReply>> PG::handle_failed_op(
     need_reload_obc);
   return (need_reload_obc ? reload_obc(*obc)
                           : load_obc_ertr::now()
-  ).safe_then([&e, &m, obc = std::move(obc), this] {
+  ).safe_then([e, &m, obc = std::move(obc), this] {
     auto reply = make_message<MOSDOpReply>(
       &m, -e.value(), get_osdmap_epoch(), 0, false);
     reply->set_enoent_reply_versions(