]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd: PerShardState::start_operation() doesn't assume Ret is seastar::future<>
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Wed, 23 Nov 2022 21:30:02 +0000 (21:30 +0000)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Tue, 28 Feb 2023 16:22:04 +0000 (16:22 +0000)
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/crimson/osd/shard_services.h

index f366b96c9c24ff77a817d5ebe9fd54e87b347e4a..3cf807e8ca34a3b10658efeea061463ebc054288 100644 (file)
@@ -132,7 +132,7 @@ class PerShardState {
     auto op = registry.create_operation<T>(std::forward<Args>(args)...);
     crimson::get_logger(ceph_subsys_osd).info(
       "PerShardState::{}, {}", __func__, *op);
-    auto fut = op->start().then([op /* by copy */] {
+    auto fut = op->start().finally([op /* by copy */] {
       // ensure the op's lifetime is appropriate. It is not enough to
       // guarantee it's alive at the scheduling stages (i.e. `then()`
       // calling) but also during the actual execution (i.e. when passed