Fix race condition between BinaryUploadService and downloads
If the BinaryUploadService attempts to read the file before the download code has renamed it to its final location, we can end up having a race condition between the renaming and reading the file contents. So the BinaryUploadService will now wait for the file to be renamed before reading the contents. We'll have to revisit this decision when launching a blocking mode, since then the file isn't renamed until after the upload. Bug: 980784 Change-Id: I5228e8610df9d5db7e84fbfbc2bb53bea79a9e9a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1769677Reviewed-by:Varun Khaneja <vakh@chromium.org> Commit-Queue: Daniel Rubery <drubery@chromium.org> Cr-Commit-Position: refs/heads/master@{#690791}
Showing
Please register or sign in to comment