]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os: return an errorator::future in an erroratorized chain 39783/head
authorKefu Chai <kchai@redhat.com>
Tue, 2 Mar 2021 11:48:18 +0000 (19:48 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 2 Mar 2021 11:55:50 +0000 (19:55 +0800)
errorator does not convert a "void" continuation to a ready future at
the time of writing.

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

index 35d686c0a3378bcc4972b23c4a58f541b7368f3d..9592ba854acfb30fe0916550dcc71267aef30dfc 100644 (file)
@@ -181,6 +181,7 @@ TransactionManager::refs_ret TransactionManager::dec_ref(
         [this, &t, &refcnt] (auto &laddr) {
         return dec_ref(t, laddr).safe_then([&refcnt] (auto ref) {
           refcnt.push_back(ref);
+          return ref_ertr::now();
         });
       }).safe_then([&refcnt] {
         return ref_ertr::make_ready_future<std::vector<unsigned>>(std::move(refcnt));