-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add optional file sync for
Write
with portable fsync
Introduce a `Sync` parameter to the `Write` structure, allowing optional file synchronization after writing. Implement `portable_fsync` for cross-platform fsync functionality, using `FlushFileBuffers` on Windows and `fsync` on Unix-based systems. Adjust parameter handling to support the new `Sync` option and ensure the file is synced to disk when enabled.
- Loading branch information
1 parent
f34bfbb
commit a45c59e
Showing
1 changed file
with
52 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters