]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/common: pass rvalue reference to future::set_callback().
authorRadosław Zarzyński <rzarzyns@redhat.com>
Fri, 18 Mar 2022 13:12:53 +0000 (14:12 +0100)
committerRadosław Zarzyński <rzarzyns@redhat.com>
Fri, 18 Mar 2022 14:50:44 +0000 (15:50 +0100)
It's necessary since 710a1bfdc02202fe9e59df8ea31de5b82b893fb4
in Seastar.

This change is a part of ongoing upgrade of Seastar which will
be completed in a follow-up PR, after merging another change
with the Seastar's upstream.

Signed-off-by: Radosław Zarzyński <rzarzyns@redhat.com>
src/crimson/common/errorator-loop.h
src/crimson/common/interruptible_future.h

index b17217276e892349f03ac71a65462155c0f06184..bb3b7fb15c60c33a3b82f0accd56a13598f80d56 100644 (file)
@@ -24,7 +24,8 @@ private:
       _incomplete.pop_back();
     }
     if (!_incomplete.empty()) {
-      seastar::internal::set_callback(_incomplete.back(), static_cast<continuation_base<>*>(this));
+      seastar::internal::set_callback(std::move(_incomplete.back()),
+                                      static_cast<continuation_base<>*>(this));
       _incomplete.pop_back();
       return;
     }
index 6818ea9dddc7d2527c7808f3a0e67d46c1f1b3d3..5abb652dca017a45fbe005f4565286e5fe9bae69 100644 (file)
@@ -341,7 +341,8 @@ private:
       _incomplete.pop_back();
     }
     if (!_incomplete.empty()) {
-      seastar::internal::set_callback(_incomplete.back(), static_cast<continuation_base<>*>(this));
+      seastar::internal::set_callback(std::move(_incomplete.back()),
+                                     static_cast<continuation_base<>*>(this));
       _incomplete.pop_back();
       return;
     }