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

Skip to content

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

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

Sa 8000 me 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.

Java/Kotlin: Minigraf.WAL_CHECKPOINT_NEVER, plus a test that the WAL survives close(). ./gradlew test: 20 passed. 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 ede1a8d into v3 Oct 7, 2026
13 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