]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/alienstore: add curly brackets
authorKefu Chai <kchai@redhat.com>
Wed, 12 May 2021 03:45:32 +0000 (11:45 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 12 May 2021 03:45:34 +0000 (11:45 +0800)
for better readability

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/os/alienstore/alien_store.cc

index c999609ab6f40838cb8aa7a3667ff244b7e63b04..950bfffeb2a213978ab14d932e42f041986cb4e7 100644 (file)
@@ -47,7 +47,9 @@ public:
 
   void finish(int) final {
     return seastar::alien::submit_to(cpuid, [this] {
-      if (oncommit) oncommit->complete(0);
+      if (oncommit) {
+        oncommit->complete(0);
+      }
       alien_done.set_value();
       return seastar::make_ready_future<>();
     }).wait();
@@ -94,8 +96,9 @@ seastar::future<> AlienStore::start()
 seastar::future<> AlienStore::stop()
 {
   return tp->submit([this] {
-    for (auto [cid, ch]: coll_map)
+    for (auto [cid, ch]: coll_map) {
       static_cast<AlienCollection*>(ch.get())->collection.reset();
+    }
     store.reset();
   }).then([this] {
     return tp->stop();