]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd: do not pass lvalue of the lambda to seastar::futurize_invoke 39831/head
authorXuehan Xu <xxhdx1985126@gmail.com>
Thu, 4 Mar 2021 12:29:57 +0000 (20:29 +0800)
committerXuehan Xu <xxhdx1985126@gmail.com>
Thu, 4 Mar 2021 12:31:24 +0000 (20:31 +0800)
Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
src/crimson/osd/osd_operation_sequencer.h

index a175b918048445e65d147a89b3ae732eafd2e67c..78bf82f6fd8d265d9353031708e88f17c95ff861 100644 (file)
@@ -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();