Skip to content

Commit 164d76f

Browse files
committed
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 <[email protected]> Signed-off-by: Xuehan Xu <[email protected]>
1 parent 28d8281 commit 164d76f

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/crimson/osd/pg.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -890,9 +890,7 @@ void PG::enqueue_delete_for_backfill(
890890
backfill_state->enqueue_standalone_delete(obj, v, peers);
891891
}
892892

893-
PG::interruptible_future<
894-
std::tuple<PG::interruptible_future<>,
895-
PG::interruptible_future<>>>
893+
PG::interruptible_future<PG::rep_op_fut_t>
896894
PG::submit_transaction(
897895
ObjectContextRef&& obc,
898896
ObjectContextRef&& new_clone,

src/crimson/osd/pg.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -686,8 +686,9 @@ class PG : public boost::intrusive_ref_counter<
686686
interruptible_future<MURef<MOSDOpReply>> do_pg_ops(Ref<MOSDOp> m);
687687

688688
public:
689-
interruptible_future<
690-
std::tuple<interruptible_future<>, interruptible_future<>>>
689+
using rep_op_fut_t = std::tuple<interruptible_future<>,
690+
interruptible_future<>>;
691+
interruptible_future<rep_op_fut_t>
691692
submit_transaction(
692693
ObjectContextRef&& obc,
693694
ObjectContextRef&& new_clone,

0 commit comments

Comments
 (0)