Description[CacheStorage] Give cache directories unique names
The CacheStorage class creates a directory for each cache based off of
a hash of the cache's name. This is problematic in situations where a
cache is deleted and then recreated (but not yet wiped from
disk as javascript might be referencing it).
This CL gives every new cache a unique directory and stores the directory
mapping in the cache storage index protobuf. Legacy caches are moved to
new directories on CacheStorage initialization.
BUG=542668
Committed: https://crrev.com/4519a22b4c1683f1e79543a4238bc5cdb1880b5e
Cr-Commit-Position: refs/heads/master@{#356055}
Patch Set 1 #Patch Set 2 : Rebase #Patch Set 3 : Fixes #Patch Set 4 : Add tests #Patch Set 5 : Nits #
Total comments: 10
Patch Set 6 : Rebase #Patch Set 7 : Migrate caches with legacy directory names to random names #Patch Set 8 : Nits #Patch Set 9 : Add test for windows deletion issue #Patch Set 10 : Move functions back into class #Patch Set 11 : Fix memory leak #Patch Set 12 : Nit #
Total comments: 8
Patch Set 13 : Address comments from PS12 #
Dependent Patchsets: Messages
Total messages: 28 (13 generated)
|