8000 fix: let wal_checkpoint_threshold reach the never-checkpoint sentinel by adityamukho · Pull Request #7 · project-minigraf/minigraf-swift · GitHub
[go: up one dir, main page]

Skip to content
8000

fix: let wal_checkpoint_threshold reach the never-checkpoint sentinel - #7

Merged
adityamukho merged 1 commit into
v3from
fix/wal-checkpoint-never
Oct 7, 2026
Merged

adityamukho merged 1 commit into
v3from
fix/wal-checkpoint-never

Conversation

@adityamukho
Copy link
Copy Markdown
Contributor

Same shim change as minigraf-python#7. Core skips the close-time checkpoint only for wal_checkpoint_threshold == usize::MAX. With counts as i64, the largest value (2^63−1) only delayed automatic checkpoints, so project-minigraf/minigraf#322's escape hatch was unreachable. i64::MAX now maps to usize::MAX, and the doc comment is fixed.

Swift: walCheckpointNever, plus a check in Tests/swift/main.swift, which runs in the swift-test CI job. cargo test: 26 passed, including a test that a dropped handle keeps its WAL with i64::MAX but still checkpoints with i64::MAX - 1.

Refs project-minigraf/minigraf#322

🤖 Generated with Claude Code

https://claude.ai/code/session_015GgLEs8YozJjYhwPEYgTUn

Same shim change as minigraf-python#7: i64::MAX now maps to core's
usize::MAX sentinel, so the checkpoint on close can be suppressed
(project-minigraf/minigraf#322). Since counts became i64 the largest
value only delayed automatic checkpoints, and the doc comment was wrong.

Refs project-minigraf/minigraf#322

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015GgLEs8YozJjYhwPEYgTUn
@adityamukho
adityamukho merged commit 10bbf4b into v3 Oct 7, 2026
3 checks passed
@adityamukho
adityamukho deleted the fix/wal-checkpoint-never branch October 7, 2026 08:44
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.

1 participant

0