mvcc: remove tx from store when commit write set is empty

previously, this was leaking transaction IDs in the mv store.
This commit is contained in:
Jussi Saurio
2025-09-24 08:03:22 +03:00
parent 949e6dd728
commit 7464d1c172

View File

@@ -472,6 +472,7 @@ impl<Clock: LogicalClock> StateTransition for CommitStateMachine<Clock> {
mvcc_store.release_exclusive_tx(&self.tx_id);
self.commit_coordinator.pager_commit_lock.unlock();
}
mvcc_store.remove_tx(self.tx_id);
self.finalize(mvcc_store)?;
return Ok(TransitionResult::Done(()));
}