Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fsync before rename after copy in DiskCacheClient
Debugging `disk_cache` at work, found this TODO in the code, decided to implement. If `fsync` fails we don't rename to final name — which is the correct error handling as it was before if `copy` failed. Closes bazelbuild#16691. PiperOrigin-RevId: 486901488 Change-Id: Ia2aef6bc196e1d0a61f46b7b6c719563938ff48e
- Loading branch information