• Brian White's avatar
    Better handling of invalid files in metrics directory. · 514d9f32
    Brian White authored
    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: default avatarAlexei Svitkine <asvitkine@chromium.org>
    Commit-Queue: Brian White <bcwhite@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#521770}
    514d9f32
enums.xml 1.88 MB
The source could not be displayed because it is larger than 1 MB. You can load it anyway or download it instead.