Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Libsql disable checkpoint downgrade #1970

Merged
merged 3 commits into from
Feb 27, 2025
Merged

Conversation

sivukhin
Copy link
Contributor

@sivukhin sivukhin commented Feb 27, 2025

SQLite can downgrade wal_checkpoint mode from TRUNCATE to PASSIVE if it will unable to take write lock during busy_wait period.

This PR adds compile time option LIBSQL_DISABLE_CHECKPOINT_DOWNGRADE which will disable this behavior and instead of mode downgrade fail-fast checkpoint procedure with SQLITE_BUSY error.

@sivukhin sivukhin marked this pull request as ready for review February 27, 2025 11:51
@sivukhin sivukhin requested a review from penberg February 27, 2025 11:51
@sivukhin sivukhin added this pull request to the merge queue Feb 27, 2025
Merged via the queue into main with commit d42e05a Feb 27, 2025
20 checks passed
@sivukhin sivukhin deleted the libsql-disable-checkpoint-downgrade branch February 27, 2025 15:48
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