indexeddb: correctly delete blobs in ClearObjectStore
The two important changes here are: (1) Call DeleteBlobsInObjectStore before RemoveRange If RemoveRange is called first, then DeleteBlobsInObjectStore cannot find all of the blobs to add to the external change map, and thus CollectBlobFilesToRemove will have nothing to remove. (2) Exclude the BlobEntryKey index from RemoveRange If this is removed in ClearObjectStore, then CollectBlobFilesToRemove will not be able to find the blobs (and their numbers) when decoding the external objects. These entries will be individually removed in CollectBlobFilesToRemove. Bug: 488851 Change-Id: I8dc9cd0208054d482006718ab42c439cf5f79382 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2148847 Commit-Queue: enne <enne@chromium.org> Auto-Submit: enne <enne@chromium.org> Reviewed-by:Marijn Kruisselbrink <mek@chromium.org> Reviewed-by:
Daniel Murphy <dmurph@chromium.org> Cr-Commit-Position: refs/heads/master@{#759432}
Showing
Please register or sign in to comment