Skip to content

docs: explain file sync durability - #201

Merged
luojiyin1987 merged 1 commit into
masterfrom
docs/explain-file-sync-durability
Oct 14, 2026
Merged

luojiyin1987 merged 1 commit into
masterfrom
docs/explain-file-sync-durability

Conversation

@luojiyin1987

Copy link
Copy Markdown
Contributor

What changed

Add a comment beside handle.sync() in safeWriteFile().
The comment explains why the function syncs file data and length before it returns.
It also states the limit of this protection during a crash.

Verification

  • npm run lint passed.
  • git diff --check passed.

Redactions

No sensitive data was included.

@luojiyin1987
luojiyin1987 merged commit b9cb543 into master Oct 14, 2026
6 checks passed
@luojiyin1987
luojiyin1987 deleted the docs/explain-file-sync-durability branch October 14, 2026 16:15
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