]> git.bitcoin.ninja Git - rust-lightning/commit
f Use sync_all rather than libc::fsync
authorElias Rohrer <dev@tnull.de>
Wed, 23 Aug 2023 11:58:36 +0000 (13:58 +0200)
committerElias Rohrer <dev@tnull.de>
Wed, 23 Aug 2023 11:58:36 +0000 (13:58 +0200)
commit5043bd793d12f9091ca3f58023cec75163eac920
tree7aee93c83d5aa08bf967dae18c85b8b19bb9358e
parentcf6126b1477d475915b896764389f444f2713c2f
f Use sync_all rather than libc::fsync

As it iternally does the right thing (tm): call `libc::fsync` on
non-macOS UNIXes and `libc::fcntl` with `libc::F_FULLSYNC` set on macOS
(as Apple decided to break POSIX to cheat benchmarks).
lightning-persister/src/fs_store.rs