Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
storage_local: change LocalStorage.save() to be atomic
Let's use unique names for temporary files like this: kubernetes.json.tmp.5c04a66a9731459acb723c5ee7d8d279 instead of: kubernetes.json.tmp This makes LocalStorage.save() practically atomic, and hence allows Fluentd not to corrupt data even in a race condition. Signed-off-by: Fujimoto Seiji <[email protected]>
- Loading branch information