]> 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, 5 Jan 2026 21:14:58 +0000 (13:14 -0800)
Signed-off-by: Samuel Just <sjust@redhat.com>
src/crimson/os/seastore/transaction_manager.h

index 365b37cb7ca845d9383c1e22b8c1ab534f09f299..c6f57c75ab7467e43ff9831df8befad013a26658 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;
   }
 
   /**