]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/.../transaction_manager: convert get_pins to use get_cursors
authorSamuel Just <sjust@redhat.com>
Mon, 13 Oct 2025 20:58:54 +0000 (20:58 +0000)
committerSamuel Just <sjust@redhat.com>
Tue, 9 Dec 2025 23:36:13 +0000 (15:36 -0800)
Signed-off-by: Samuel Just <sjust@redhat.com>
src/crimson/os/seastore/transaction_manager.h

index 617b9ff567899add0dbc1d6696be3a5160fcff4d..a46da4ae61c5ce09c6904fe22b892239e1c31669 100644 (file)
@@ -161,9 +161,13 @@ public:
     extent_len_t length) {
     LOG_PREFIX(TransactionManager::get_pins);
     SUBDEBUGT(seastore_tm, "{}~0x{:x} ...", t, offset, length);
-    auto pins = co_await lba_manager->get_mappings(t, offset, length);
-    SUBDEBUGT(seastore_tm, "got {} pins", t, pins.size());
-    co_return pins;
+    auto cursors = co_await lba_manager->get_cursors(t, offset, length);
+    std::list<LBAMapping> ret;
+    for (auto &cursor: cursors) {
+      ret.emplace_back(co_await resolve_cursor_to_mapping(t, cursor));
+    }
+    SUBDEBUGT(seastore_tm, "got {} pins", t, ret.size());
+    co_return ret;
   }
 
   /**