]> 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>
Mon, 16 Feb 2026 23:40:56 +0000 (15:40 -0800)
Signed-off-by: Samuel Just <sjust@redhat.com>
src/crimson/os/seastore/transaction_manager.h

index d1be4fa0ec3b921e800f954993c83345bc46f180..1efba8d560dbc1b7dcc539528ee63806665ffae6 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;
   }
 
   /**