mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-01 07:24:19 +01:00
Separates cursor.key_exists_in_index() into a state machine. The problem with the main branch implementation is this: `return_if_io!(seek)` `return_if_io!(cursor.record())` The latter may yield on IO and cause the seek to start over, causing an infinite loop. With an explicit state machine we can control and prevent this.