Merge lp:~wgrant/launchpad/librarian-fsync into lp:launchpad
Proposed by
William Grant
Status: | Merged |
---|---|
Merged at revision: | 18196 |
Proposed branch: | lp:~wgrant/launchpad/librarian-fsync |
Merge into: | lp:launchpad |
Diff against target: |
54 lines (+31/-1) 1 file modified
lib/lp/services/librarianserver/storage.py (+31/-1) |
To merge this branch: | bzr merge lp:~wgrant/launchpad/librarian-fsync |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Colin Watson (community) | Approve | ||
Review via email: mp+306099@code.launchpad.net |
Commit message
Fix the librarian to fsync new files and their parent directories.
Description of the change
Fix the librarian to fsync new files and their parent directories.
Previously an unclean shutdown could result in truncated or missing
files, even after the upload appeared successful and the client had
committed the database transaction. The fsyncs only ensure durability,
as we don't care about atomicity.
To post a comment you must log in.