]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/.../remove: convert to use cursor interfaces
authorSamuel Just <sjust@redhat.com>
Thu, 2 Oct 2025 21:20:18 +0000 (21:20 +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.cc

index e9cd605597ce485fec6ec01f6245a7f2d2760a78..e80ed5f7c5832d8aa1fc93c2a53ff013a1b3ba80 100644 (file)
@@ -230,7 +230,8 @@ TransactionManager::ref_ret TransactionManager::remove(
 {
   LOG_PREFIX(TransactionManager::remove);
   DEBUGT("{} ...", t, offset);
-  auto mapping = co_await lba_manager->get_mapping(t, offset);
+  auto cursor = co_await lba_manager->get_cursor(t, offset);
+  auto mapping = co_await resolve_cursor_to_mapping(t, std::move(cursor));
   auto result = co_await _remove(t, std::move(mapping));
   co_return result.result.refcount;
 }