Skip to content

Commit

Permalink
Merge pull request ceph#39831 from xxhdx1985126/wip-crimson-io-sequen…
Browse files Browse the repository at this point in the history
…cer-bug

crimson/osd: do not pass lvalue of the lambda to seastar::futurize_invoke

Reviewed-by: Radoslaw Zarzynski <[email protected]>
Reviewed-by: Kefu Chai <[email protected]>
  • Loading branch information
tchaikov authored Mar 4, 2021
2 parents c0e65f7 + a44cac9 commit dbab7e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/crimson/osd/osd_operation_sequencer.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ class OpSequencer {
return last_unblocked == prev_op;
});
}
return have_green_light.then([this_op, do_op=std::move(do_op), this] {
auto result = seastar::futurize_invoke(do_op);
return have_green_light.then([this_op, do_op=std::move(do_op), this]() mutable {
auto result = seastar::futurize_invoke(std::move(do_op));
// unblock the next one
last_unblocked = this_op;
unblocked.broadcast();
Expand Down

0 comments on commit dbab7e2

Please sign in to comment.