crimson/common/errorator: disallow void-returning error handlers
Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
Reviewed-by: Chunmei Liu <chunmei.liu@intel.com>
13 files changed:
ctx.reset_preserve_handle(*transaction_manager);
return std::invoke(f, ctx);
}).handle_error(
- crimson::ct_error::eagain::pass_further{},
crimson::ct_error::all_same_way([&ctx](auto e) {
on_error(ctx.ext_transaction);
+ return seastar::now();
})
);
}).then([this, op_type, &ctx] {
});
}).handle_error(
submit_transaction_iertr::pass_further{},
- crimson::ct_error::all_same_way([](auto e) {
- ceph_assert(0 == "Hit error submitting to journal");
- })
+ crimson::ct_error::assert_all{"Hit error submitting to journal"}
);
- }).finally([&tref]() {
- tref.get_handle().exit();
});
}