-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libsql: Improve WAL frame push logic
The server returns its maximum frame number so let's use that as a hint to avoid pushing frames it already knows about. IOW, let's start by sending the first frame in the WAL, but immediately skip to a the server's max frame number. Later we should also cache the server max frame number on client side to make the first push start from the right frame.
- Loading branch information
Showing
2 changed files
with
18 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters