mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-25 20:14:21 +01:00
Since we expect to ensure thread safety between multiple threads in the future, we extract what is important to be shared between multiple connections with regards to WAL. This is WIP so I just put whatever feels like important behind a RwLock but expect this to change to Atomics in the future as needed. Maybe even these locks might disappear because they will be better served with transaction locks.