mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-31 22:04:23 +01:00
Merge 'whopper: Handle write-write conflict' from Pekka Enberg
Write-write conflict is not an error that stops the simulation. Closes #3149
This commit is contained in:
@@ -370,6 +370,16 @@ fn perform_work(
|
||||
}
|
||||
return Ok(());
|
||||
}
|
||||
turso_core::LimboError::WriteWriteConflict => {
|
||||
trace!(
|
||||
"{} Write-write conflict, transaction automatically rolled back",
|
||||
fiber_idx
|
||||
);
|
||||
drop(stmt_borrow);
|
||||
context.fibers[fiber_idx].statement.replace(None);
|
||||
context.fibers[fiber_idx].state = FiberState::Idle;
|
||||
return Ok(());
|
||||
}
|
||||
_ => {
|
||||
return Err(e.into());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user