Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

storage_local: change LocalStorage.save() to be atomic #3335

Merged
merged 1 commit into from
Apr 19, 2021

Commits on Apr 19, 2021

  1. 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 <fujimoto@ceptord.net>
    fujimotos committed Apr 19, 2021
    Configuration menu
    Copy the full SHA
    9a7cda6 View commit details
    Browse the repository at this point in the history