Skip to content

fix: make durable writes checked - #12

Merged
xRookieFight merged 1 commit into
vlang:masterfrom
bedrock-v:fix/durable-sync
Sep 9, 2026
Merged

xRookieFight merged 1 commit into
vlang:masterfrom
bedrock-v:fix/durable-sync

Conversation

@nepinhum

@nepinhum nepinhum commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

What this changes

Makes critical database writes use checked direct file descriptor writes before durability sync and syncs CURRENT.tmp before renaming it. Windows file sync now uses _get_osfhandle() & FlushFileBuffers(); Windows directory sync remains a documented noop because there is no documented POSIX style directory fsync equivalent

How it was checked

v test .
v -os windows -shared -o /tmp/leveldb.dll .

Checklist

  • v fmt -w . ran
  • Tests pass
  • A new module carries a README.md

@xRookieFight
xRookieFight merged commit 11d5ce3 into vlang:master Sep 9, 2026
1 check passed
@xRookieFight
xRookieFight deleted the fix/durable-sync branch September 9, 2026 17:00
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.

2 participants