Skip to content

conditionally compile released SQLite on ifndef SQLITE_TRUNK - #142

Merged
oxtoacart merged 1 commit into
mainfrom
percy/corp37997-3
Mar 4, 2026
Merged

conditionally compile released SQLite on ifndef SQLITE_TRUNK#142
oxtoacart merged 1 commit into
mainfrom
percy/corp37997-3

Conversation

@oxtoacart

Copy link
Copy Markdown
Contributor

Also log a warning when SQLite trunk detects when the WAL is wrapped after the header was read for a checkpoint.

Updates tailscale/corp#37997

Also log a warning when SQLite trunk detects when the WAL is wrapped after
the header was read for a checkpoint.

Updates tailscale/corp#37997

Signed-off-by: Percy Wegmann <percy@tailscale.com>
@oxtoacart
oxtoacart merged commit 070c921 into main Mar 4, 2026
2 checks passed
Comment thread cgosqlite/sqlite3_trunk.c
** the wal file. It would also be dangerous to proceed, as there may be
** fewer than pWal->hdr.mxFrame valid frames in the wal file. */
int bChg = memcmp(pLive->aSalt, pWal->hdr.aSalt, sizeof(pWal->hdr.aSalt));
if( bChg ) sqlite3_log(SQLITE_WARNING, "wal wrapped after header was read for this checkpoint");

@icy icy Aug 15, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants