From 164d76f5cc6542b13e2345a479580f2bf873cefa Mon Sep 17 00:00:00 2001 From: Matan Breizman Date: Wed, 5 Mar 2025 15:28:16 +0000 Subject: [PATCH] crimson/osd/pg: use rep_op_fut_t rep_op_fut_t is already used in mutiple files. Instead of intoducing common types in each relevant file, future work shoud move this type (and similar) to "crimson_types" file. Signed-off-by: Matan Breizman Signed-off-by: Xuehan Xu --- src/crimson/osd/pg.cc | 4 +--- src/crimson/osd/pg.h | 5 +++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/crimson/osd/pg.cc b/src/crimson/osd/pg.cc index a0d47e638a3..43cd4661164 100644 --- a/src/crimson/osd/pg.cc +++ b/src/crimson/osd/pg.cc @@ -890,9 +890,7 @@ void PG::enqueue_delete_for_backfill( backfill_state->enqueue_standalone_delete(obj, v, peers); } -PG::interruptible_future< - std::tuple, - PG::interruptible_future<>>> +PG::interruptible_future PG::submit_transaction( ObjectContextRef&& obc, ObjectContextRef&& new_clone, diff --git a/src/crimson/osd/pg.h b/src/crimson/osd/pg.h index 1168c56933d..febfa725458 100644 --- a/src/crimson/osd/pg.h +++ b/src/crimson/osd/pg.h @@ -686,8 +686,9 @@ private: interruptible_future> do_pg_ops(Ref m); public: - interruptible_future< - std::tuple, interruptible_future<>>> + using rep_op_fut_t = std::tuple, + interruptible_future<>>; + interruptible_future submit_transaction( ObjectContextRef&& obc, ObjectContextRef&& new_clone, -- 2.39.5