]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore/transaction: add helpers
authorSamuel Just <sjust@redhat.com>
Mon, 13 Jul 2020 22:46:21 +0000 (15:46 -0700)
committerSamuel Just <sjust@redhat.com>
Thu, 16 Jul 2020 23:16:42 +0000 (16:16 -0700)
Signed-off-by: Samuel Just <sjust@redhat.com>
src/crimson/os/seastore/transaction.h

index 61752b5dafe631f71a0909c30822192fda11aa4b..659d2b6b53c8edaf1c1f36cfbae55281da8f9d63 100644 (file)
@@ -70,6 +70,18 @@ public:
     mutated_block_list.push_back(ref);
     write_set.insert(*ref);
   }
+
+  const auto &get_fresh_block_list() {
+    return fresh_block_list;
+  }
+
+  const auto &get_mutated_block_list() {
+    return mutated_block_list;
+  }
+
+  const auto &get_retired_set() {
+    return retired_set;
+  }
 };
 using TransactionRef = std::unique_ptr<Transaction>;