mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-28 13:34:24 +01:00
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:
@@ -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(()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user