]> 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)
committerMatan Breizman <mbreizma@redhat.com>
Thu, 13 Jun 2024 12:23:12 +0000 (15:23 +0300)
copied from the original extents

Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
(cherry picked from commit a136cc62d6878b124c41700e2f55ca214cdf041a)

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);