mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-23 08:55:40 +01:00
mvcc: don't double-rollback on write-write-conflict
handle_program_error() already rolls back if this error happens. double rollback causes a crash.
This commit is contained in:
@@ -1093,7 +1093,6 @@ impl<Clock: LogicalClock> MvStore<Clock> {
|
||||
if is_write_write_conflict(&self.txs, tx, rv) {
|
||||
drop(row_versions);
|
||||
drop(row_versions_opt);
|
||||
self.rollback_tx(tx_id, pager);
|
||||
return Err(LimboError::WriteWriteConflict);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user