]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
test/crimson/seastore: always handle returned future<>
authorKefu Chai <kchai@redhat.com>
Thu, 3 Jun 2021 07:28:45 +0000 (15:28 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 3 Jun 2021 07:37:34 +0000 (15:37 +0800)
this change also silences the [-Wunused-result] warning.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/test/crimson/seastore/test_btree_lba_manager.cc

index 131b7a6d659633cf7669c00c93537532da525216..11818bdfd057a580a36c8dbbad452e92ef26f2b5 100644 (file)
@@ -67,9 +67,8 @@ struct btree_lba_manager_test :
       [this, t=std::move(t)](auto p) mutable {
        auto [addr, seq] = p;
        cache.complete_commit(*t, addr, seq);
-       lba_manager->complete_transaction(*t);
-      },
-      crimson::ct_error::assert_all{});
+       return lba_manager->complete_transaction(*t);
+      }).handle_error(crimson::ct_error::assert_all{});
   }
 
   seastar::future<> set_up_fut() final {
@@ -137,7 +136,7 @@ struct btree_lba_manager_test :
   }
 
   void submit_test_transaction(test_transaction_t t) {
-    submit_transaction(std::move(t.t)).get0();
+    submit_transaction(std::move(t.t)).get();
     test_lba_mappings.swap(t.mappings);
   }