tursodatabase / libsql

libSQL is a fork of SQLite that is both Open Source, and Open Contributions.
https://turso.tech/libsql
MIT License
9.54k stars 252 forks source link

fix bottomless bug when restoring from uncompressed snapshots #1493

Closed MarinPostma closed 3 months ago

MarinPostma commented 3 months ago

Fix a bug in restoring from uncompressed snapshot where the file extension was hardcoded to .db when everywhere else, it was .raw. This caused the restore function to reccurse in the generation until it hit the first generation, effectively discarding everything.