]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore: SeaStore::test_start into coroutines
authorMatan Breizman <mbreizma@redhat.com>
Tue, 29 Jul 2025 11:15:11 +0000 (11:15 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Thu, 4 Sep 2025 12:39:17 +0000 (12:39 +0000)
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
src/crimson/os/seastore/seastore.cc

index 8a6c4aa0604300508dee00e451f9ba596359da93..92a6cfc46af296e6931703c825631da08ad9308a 100644 (file)
@@ -239,10 +239,8 @@ seastar::future<> SeaStore::test_start(DeviceRef device_obj)
   ceph_assert(device_obj);
   ceph_assert(root == "");
   device = std::move(device_obj);
-  return shard_stores.start_single(root, device.get(), true
-  ).then([FNAME] {
-    INFO("done");
-  });
+  co_await shard_stores.start_single(root, device.get(), true);
+  INFO("done");
 }
 
 seastar::future<> SeaStore::stop()