From 3e7a074f8253878d86b3b879ec79ffecd2334b4f Mon Sep 17 00:00:00 2001 From: Pere Diaz Bou Date: Thu, 18 Sep 2025 18:27:57 +0200 Subject: [PATCH] core/mvcc: fix review comments --- core/mvcc/database/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/mvcc/database/mod.rs b/core/mvcc/database/mod.rs index 047695a42..94c467e1f 100644 --- a/core/mvcc/database/mod.rs +++ b/core/mvcc/database/mod.rs @@ -850,7 +850,8 @@ impl StateTransition for CommitStateMachine { return Ok(TransitionResult::Continue); } CommitState::BeginCommitLogicalLog { end_ts, log_record } => { - if mvcc_store.storage.is_logical_log() && !mvcc_store.is_exclusive_tx(&self.tx_id) { + assert!(mvcc_store.storage.is_logical_log()); + if !mvcc_store.is_exclusive_tx(&self.tx_id) { // logical log needs to be serialized let locked = self.commit_coordinator.pager_commit_lock.write(); if !locked {