From a44cac904132003091e6f492ddc9fed751267f34 Mon Sep 17 00:00:00 2001 From: Xuehan Xu Date: Thu, 4 Mar 2021 20:29:57 +0800 Subject: [PATCH] crimson/osd: do not pass lvalue of the lambda to seastar::futurize_invoke Signed-off-by: Xuehan Xu --- src/crimson/osd/osd_operation_sequencer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/crimson/osd/osd_operation_sequencer.h b/src/crimson/osd/osd_operation_sequencer.h index a175b91804844..78bf82f6fd8d2 100644 --- a/src/crimson/osd/osd_operation_sequencer.h +++ b/src/crimson/osd/osd_operation_sequencer.h @@ -59,8 +59,8 @@ public: 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(); -- 2.47.3