From: Xuehan Xu Date: Fri, 12 Jun 2026 07:39:31 +0000 (+0800) Subject: crimson/os/seastore/transaction: clear copied_lba_keys on reset X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a8af36d04e0e7979188468a0ab5d2b31dba3465a;p=ceph.git crimson/os/seastore/transaction: clear copied_lba_keys on reset Before this commit, Transaction::copied_lba_keys was never cleared on reset, so when a transaction is reset, and another rewrite transaction is committing, the rewrite transaction would try to update the copied lba mapping which may not have been copied by the reset transaction, which would result in unexpected errors. This commit generally follows the regulations about resetting transactions, which is clear everything on reset Fixes: https://tracker.ceph.com/issues/76945 Signed-off-by: Xuehan Xu --- diff --git a/src/crimson/os/seastore/transaction.h b/src/crimson/os/seastore/transaction.h index a6e2e1c7272..c8c727e9a6f 100644 --- a/src/crimson/os/seastore/transaction.h +++ b/src/crimson/os/seastore/transaction.h @@ -535,6 +535,8 @@ public: } get_handle().exit(); views.clear(); + copied_lba_keys.clear(); + update_copied_lba_key = nullptr; } bool did_reset() const {