mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-30 14:34:22 +01:00
Closes #1998. Now I am queuing IO to be run at some later point in time. Also Latency for some reason is slowing the simulator a looot for some runs. This PR also adds a StateMachine variant in Balance as now `free_pages` is correctly an asynchronous function. With this change, we now need a state machine in the `Pager` so that `free_pages` can be reentrant. Lastly, I removed a timeout in `checkpoint_shutdown` as it was triggering constantly due to the slightly increased latency. Reviewed-by: Jussi Saurio <jussi.saurio@gmail.com> Closes #1943