Skip to content

Commit

Permalink
crimson/osd: capture error_code by value in PG::handle_failed_op
Browse files Browse the repository at this point in the history
Signed-off-by: Xuehan Xu <[email protected]>
  • Loading branch information
xxhdx1985126 committed Mar 4, 2021
1 parent 005b836 commit 1df4ab9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crimson/osd/pg.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 1df4ab9

Please sign in to comment.