Better handling of invalid files in metrics directory.
Previously, when managing a directory of files, only one file was ever processed per call. This wasn't a problem because after each call, another would be scheduled. However, the "independent" files are processed by an outside caller and so if the file ready for it turned out to be invalid, it would see "nothing to be done" and wait an extended period of time to try again. The new version does the validity test during the initial check and immediately advances to the next file if it detects a problem. This means there is always a file to process and never a significant delay before trying the next one. Bug: 760317, 780036 Change-Id: I3fece9e41af3b8d29d0fa80b25141c00f9ae9db2 Reviewed-on: https://chromium-review.googlesource.com/804063Reviewed-by:Alexei Svitkine <asvitkine@chromium.org> Commit-Queue: Brian White <bcwhite@chromium.org> Cr-Commit-Position: refs/heads/master@{#521770}
Showing
Please register or sign in to comment