From: Matan Breizman Date: Wed, 5 Mar 2025 15:28:16 +0000 (+0000) Subject: crimson/osd/pg: use rep_op_fut_t X-Git-Tag: testing/wip-vshankar-testing-20250311.100342-debug~9^2~4 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=164d76f5cc6542b13e2345a479580f2bf873cefa;p=ceph-ci.git 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 --- 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,