tursodatabase / libsql

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

libsql wal replica checkpoint #1714

Closed MarinPostma closed 2 months ago

MarinPostma commented 2 months ago

Implement replica checkpointing.

Replica can checkpoint segments up to the durable frame_no reported by the primary. The reason for that is that replica can always recover from the latest durable frame_no, avoid sync-from-scratch like with the previous version of the replication.

depends on #1711