mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-21 17:14:19 +01:00
when updating last_insert_rowid we call return_if_io!(cursor.rowid()) which yields IO on large records. this causes op_insert to insert and overwrite the same row many times. we need a state machine to ensure that the insertion only happens once and the reading of rowid can independently yield IO without causing a re-insert.