From 6b3917073331faf9da1dc582e341dcfb7062f6e8 Mon Sep 17 00:00:00 2001 From: luo rixin Date: Fri, 5 Aug 2022 14:55:46 +0800 Subject: [PATCH] crimson/os/seastore/seastore: return future when no element error tolerated 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 --- src/crimson/os/seastore/seastore.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/crimson/os/seastore/seastore.cc b/src/crimson/os/seastore/seastore.cc index c02b00d977fb7..a6161b1f3ae83 100644 --- a/src/crimson/os/seastore/seastore.cc +++ b/src/crimson/os/seastore/seastore.cc @@ -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" -- 2.39.5