]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd/pg: use rep_op_fut_t
authorMatan Breizman <mbreizma@redhat.com>
Wed, 5 Mar 2025 15:28:16 +0000 (15:28 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Thu, 6 Mar 2025 09:34:13 +0000 (09:34 +0000)
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 <mbreizma@redhat.com>
Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
src/crimson/osd/pg.cc
src/crimson/osd/pg.h

index a0d47e638a3a461f11c4006092ce0b0bb7aa345b..43cd46611640b588d8db478018ede379a83d3e1b 100644 (file)
@@ -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::interruptible_future<PG::rep_op_fut_t>
 PG::submit_transaction(
   ObjectContextRef&& obc,
   ObjectContextRef&& new_clone,
index 1168c56933de2814a007f70d9ef71f1f147916d5..febfa72545814462e5b2a05a978c34016f4d6378 100644 (file)
@@ -686,8 +686,9 @@ private:
   interruptible_future<MURef<MOSDOpReply>> do_pg_ops(Ref<MOSDOp> m);
 
 public:
-  interruptible_future<
-    std::tuple<interruptible_future<>, interruptible_future<>>>
+  using rep_op_fut_t = std::tuple<interruptible_future<>,
+                                  interruptible_future<>>;
+  interruptible_future<rep_op_fut_t>
   submit_transaction(
     ObjectContextRef&& obc,
     ObjectContextRef&& new_clone,