⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 244750 in webkit


Ignore:
Timestamp:
Apr 29, 2019, 1:32:47 PM (7 years ago)
Author:
achristensen@apple.com
Message:

Storage::deleteOldVersions does not need to retain Storage
https://bugs.webkit.org/show_bug.cgi?id=197336
<rdar://problem/48679972>

Reviewed by Darin Adler.

  • NetworkProcess/cache/NetworkCacheStorage.cpp:

(WebKit::NetworkCache::Storage::deleteOldVersions):
Something is wrong with the lifetime of Storage, but we only need a String, not the whole Storage.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r244747 r244750  
     12019-04-29  Alex Christensen  <achristensen@webkit.org>
     2
     3        Storage::deleteOldVersions does not need to retain Storage
     4        https://bugs.webkit.org/show_bug.cgi?id=197336
     5        <rdar://problem/48679972>
     6
     7        Reviewed by Darin Adler.
     8
     9        * NetworkProcess/cache/NetworkCacheStorage.cpp:
     10        (WebKit::NetworkCache::Storage::deleteOldVersions):
     11        Something is wrong with the lifetime of Storage, but we only need a String, not the whole Storage.
     12
    1132019-04-29  Brent Fulgham  <bfulgham@apple.com>
    214
  • trunk/Source/WebKit/NetworkProcess/cache/NetworkCacheStorage.cpp

    r244678 r244750  
    11101110void Storage::deleteOldVersions()
    11111111{
    1112     backgroundIOQueue().dispatch([this, protectedThis = makeRef(*this)] () mutable {
    1113         auto cachePath = basePath();
    1114         traverseDirectory(cachePath, [&cachePath](const String& subdirName, DirectoryEntryType type) {
     1112    backgroundIOQueue().dispatch([cachePath = basePath()] () mutable {
     1113        traverseDirectory(cachePath, [cachePath = WTFMove(cachePath)](const String& subdirName, DirectoryEntryType type) {
    11151114            if (type != DirectoryEntryType::Directory)
    11161115                return;
Note: See TracChangeset for help on using the changeset viewer.