Skip to content

fix: let walCheckpointThreshold reach the never-checkpoint sentinel - #6

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

Core skips the close-time checkpoint only for wal_checkpoint_threshold == usize::MAX, which no JS number can hold, so project-minigraf/minigraf#322's escape hatch was unreachable from Node.

  • walCheckpointThreshold >= Number.MAX_SAFE_INTEGER now maps to usize::MAX (never checkpoint), exported as WAL_CHECKPOINT_NEVER and documented in index.d.ts/minigraf.d.ts.
  • Test: with WAL_CHECKPOINT_NEVER, closing the handle keeps the WAL; with one less, it checkpoints. node --test passes 13.

Refs project-minigraf/minigraf#322

🤖 Generated with Claude Code

https://claude.ai/code/session_015GgLEs8YozJjYhwPEYgTUn

Core suppresses the close-time checkpoint only for usize::MAX, which a
JS number cannot hold. Number.MAX_SAFE_INTEGER and above now map to it,
exported as WAL_CHECKPOINT_NEVER (project-minigraf/minigraf#322).

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 6930a96 into v3 Oct 7, 2026
4 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