]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore/transaction_manager: correct the offset of the data
authorXuehan Xu <xuxuehan@qianxin.com>
Wed, 15 May 2024 07:31:14 +0000 (15:31 +0800)
committerXuehan Xu <xuxuehan@qianxin.com>
Wed, 15 May 2024 07:31:14 +0000 (15:31 +0800)
copied from the original extents

Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
src/crimson/os/seastore/transaction_manager.cc

index ed52b022f72b97afb6433289473607a4f3ab5699..9708a20ea4fd7ab7ab9c9ccd6952322d583baffd 100644 (file)
@@ -561,7 +561,7 @@ TransactionManager::rewrite_logical_extent(
         ceph_assert(left >= nextent->get_length());
         auto nlextent = nextent->template cast<LogicalCachedExtent>();
         lextent->get_bptr().copy_out(
-          0,
+          off,
           nlextent->get_length(),
           nlextent->get_bptr().c_str());
         nlextent->set_laddr(lextent->get_laddr() + off);