From 50c18ada1caa4a0f00e1cbda683ae53f07afed79 Mon Sep 17 00:00:00 2001 From: Pere Diaz Bou Date: Tue, 16 Sep 2025 21:44:05 +0200 Subject: [PATCH] core/mvcc: logical log update header on commit --- core/mvcc/database/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/mvcc/database/mod.rs b/core/mvcc/database/mod.rs index a0056d699..68c69161c 100644 --- a/core/mvcc/database/mod.rs +++ b/core/mvcc/database/mod.rs @@ -874,6 +874,9 @@ impl StateTransition for CommitStateMachine { } CommitState::EndCommitLogicalLog { end_ts } => { if mvcc_store.storage.is_logical_log() { + let tx = mvcc_store.txs.get(&self.tx_id).unwrap(); + let tx_unlocked = tx.value(); + self.header.write().replace(*tx_unlocked.header.borrow()); self.commit_coordinator.pager_commit_lock.unlock(); } self.state = CommitState::CommitEnd { end_ts: *end_ts };