From: Samuel Just Date: Mon, 13 Oct 2025 20:58:54 +0000 (+0000) Subject: crimson/.../transaction_manager: convert get_pins to use get_cursors X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=10c508a4e9a654519274518af94ffce3d8bb41cb;p=ceph-ci.git crimson/.../transaction_manager: convert get_pins to use get_cursors Signed-off-by: Samuel Just --- diff --git a/src/crimson/os/seastore/transaction_manager.h b/src/crimson/os/seastore/transaction_manager.h index 365b37cb7ca..c6f57c75ab7 100644 --- a/src/crimson/os/seastore/transaction_manager.h +++ b/src/crimson/os/seastore/transaction_manager.h @@ -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 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; } /**