Fix removeOldItems_() while delete in progress
The inProgress_ Set was meant to stop removeOldItems_() deleting entries which are currently in progress. For this to work properly, we must ensure that item are not removed from the inProgress_ Set whilst removeOldItems_() is running. The single Set is replaced with Map<string, Set> so that each TrashConfig is independent. Entries are only ever added to the set, which is deleted once removeOldItems_() is run for each TrashConfig. Bug: 953310 Change-Id: I2f07e7f3c3cf8733e3c91fade20f37d9ffc95afb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2563390 Commit-Queue: Joel Hockey <joelhockey@chromium.org> Reviewed-by:Noel Gordon <noel@chromium.org> Cr-Commit-Position: refs/heads/master@{#832689}
Showing
Please register or sign in to comment