mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-29 04:44:23 +01:00
1. commit state machine was assuming that begin_write_tx() cannot fail, but it can fail if there is another tx that is not using BEGIN CONCURRENT. 2. if a brand new non-CONCURRENT transaction attempts to start exclusive transaction but fails with Busy, we must end the read pager read tx it just started, because otherwise the next time it attempts to do something it will panic with: "cannot start a new read tx without ending an existing one"