From cf0480e4696496c6fc537f9b75f2713668dc91b3 Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Tue, 16 Sep 2025 17:21:21 +0300 Subject: [PATCH] whopper: Handle write-write conflict Write-write conflict is not an error that stops the simulation. Note that the transaction is rolled back automatically. --- whopper/main.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/whopper/main.rs b/whopper/main.rs index 00b968886..ef6f1788e 100644 --- a/whopper/main.rs +++ b/whopper/main.rs @@ -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()); }