Instead of decalring base_ertr and base_iertr in every file or
class that use them -
* Move base_ertr decleration to the common seastore_types header.
Note: the price for that is including errorator in seastore_types
though this seems reasonable considering the benefits.
* Move base_iertr to transaction_interruptor where trans_iertr
is defined.
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
#include "include/uuid.h"
#include "include/rados.h"
+#include "crimson/common/errorator.h"
+
namespace crimson::os::seastore {
+using base_ertr = crimson::errorator<
+ crimson::ct_error::input_output_error>;
+
class cache_hint_t {
enum hint_t {
TOUCH,
#include <utility>
#include "crimson/common/errorator.h"
+#include "crimson/os/seastore/seastore_types.h"
#include "crimson/common/interruptible_future.h"
namespace crimson::os::seastore {
E
>;
+using base_iertr = trans_iertr<base_ertr>;
+
template <typename F, typename... Args>
auto with_trans_intr(Transaction &t, F &&f, Args&&... args) {
return trans_intr::with_interruption_to_error<crimson::ct_error::eagain>(