whopper: Handle write-write conflict

Write-write conflict is not an error that stops the simulation. Note
that the transaction is rolled back automatically.
This commit is contained in:
Pekka Enberg
2025-09-16 17:21:21 +03:00
parent ae25a0f088
commit cf0480e469

View File

@@ -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());
}