Changeset 225646 in webkit


Ignore:
Timestamp:
Dec 7, 2017 3:17:56 PM (6 years ago)
Author:
commit-queue@webkit.org
Message:

CacheStorage Cache should not remove any disk entry when clearing its memory representation
https://bugs.webkit.org/show_bug.cgi?id=180546

Patch by Youenn Fablet <youenn@apple.com> on 2017-12-07
Reviewed by Brady Eidson.

  • NetworkProcess/cache/CacheStorageEngineCache.cpp:

(WebKit::CacheStorage::Cache::clearMemoryRepresentation):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r225641 r225646  
     12017-12-07  Youenn Fablet  <youenn@apple.com>
     2
     3        CacheStorage Cache should not remove any disk entry when clearing its memory representation
     4        https://bugs.webkit.org/show_bug.cgi?id=180546
     5
     6        Reviewed by Brady Eidson.
     7
     8        * NetworkProcess/cache/CacheStorageEngineCache.cpp:
     9        (WebKit::CacheStorage::Cache::clearMemoryRepresentation):
     10
    1112017-12-07  Myles C. Maxfield  <mmaxfield@apple.com>
    212
  • trunk/Source/WebKit/NetworkProcess/cache/CacheStorageEngineCache.cpp

    r225499 r225646  
    122122void Cache::clearMemoryRepresentation()
    123123{
    124     for (auto& records : m_records.values()) {
    125         for (auto& record : records)
    126             removeRecordFromDisk(record);
    127     }
    128 
    129124    m_records = { };
    130125    m_nextRecordIdentifier = 0;
Note: See TracChangeset for help on using the changeset viewer.