]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore/seastore: return future when no element error tolerated 47476/head
authorluo rixin <luorixin@huawei.com>
Fri, 5 Aug 2022 06:55:46 +0000 (14:55 +0800)
committerluo rixin <luorixin@huawei.com>
Fri, 5 Aug 2022 08:50:38 +0000 (16:50 +0800)
OP_REMOVE etc ops will tolerate absent onode, we need return
ready future to chain the continuation, otherwise it will cause
a segmentation fault.

Signed-off-by: luo rixin <luorixin@huawei.com>
src/crimson/os/seastore/seastore.cc

index c02b00d977fb7e8a8eb8f21f7ad225f083a14fee..a6161b1f3ae8369afde370c9426065a91fafed79 100644 (file)
@@ -1357,6 +1357,7 @@ SeaStore::tm_ret SeaStore::_do_transaction_step(
           op->op == Transaction::OP_OMAP_SETHEADER) {
         ceph_abort_msg("unexpected enoent error");
       }
+      return seastar::now();
     }),
     crimson::ct_error::assert_all{
       "Invalid error in SeaStore::do_transaction_step"