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

libsql-wal frame injector #1464

Closed MarinPostma closed 3 months ago

MarinPostma commented 3 months ago

The Injector allows frames to be injected into a replica's wal.

A flag is added to the current segment to determine whether frames are inserted in order or not. Primaries always write frames ordered in the current segment, but replicas may receive frames out-of-order.