From: Xuehan Xu Date: Wed, 15 May 2024 07:31:14 +0000 (+0800) Subject: crimson/os/seastore/transaction_manager: correct the offset of the data X-Git-Tag: testing/wip-jcollin-testing-20240625.102731-squid~62^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=c4141953dc980848ca6158c83791b43c37186734;p=ceph-ci.git crimson/os/seastore/transaction_manager: correct the offset of the data copied from the original extents Signed-off-by: Xuehan Xu (cherry picked from commit a136cc62d6878b124c41700e2f55ca214cdf041a) --- diff --git a/src/crimson/os/seastore/transaction_manager.cc b/src/crimson/os/seastore/transaction_manager.cc index ed52b022f72..9708a20ea4f 100644 --- a/src/crimson/os/seastore/transaction_manager.cc +++ b/src/crimson/os/seastore/transaction_manager.cc @@ -561,7 +561,7 @@ TransactionManager::rewrite_logical_extent( ceph_assert(left >= nextent->get_length()); auto nlextent = nextent->template cast(); lextent->get_bptr().copy_out( - 0, + off, nlextent->get_length(), nlextent->get_bptr().c_str()); nlextent->set_laddr(lextent->get_laddr() + off);