Changeset 237330 in webkit


Ignore:
Timestamp:
Oct 22, 2018 2:05:20 PM (6 years ago)
Author:
sihui_liu@apple.com
Message:

Regression (r232410): StorageTracker.db file gets unlinked while in use
https://bugs.webkit.org/show_bug.cgi?id=190795

Reviewed by Chris Dumez.

WK2 stopped using StorageTracker.db file in r232410 and would delete
the file for safety.
It turned out WK1 could use the same file path, so WK2 may delete the
file while WK1 is using it.

  • Storage/StorageTracker.cpp:

(WebKit::StorageTracker::trackerDatabasePath):

Location:
trunk/Source/WebKitLegacy
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKitLegacy/ChangeLog

    r237266 r237330  
     12018-10-22  Sihui Liu  <sihui_liu@apple.com>
     2
     3        Regression (r232410): StorageTracker.db file gets unlinked while in use
     4        https://bugs.webkit.org/show_bug.cgi?id=190795
     5
     6        Reviewed by Chris Dumez.
     7
     8        WK2 stopped using StorageTracker.db file in r232410 and would delete
     9        the file for safety.
     10        It turned out WK1 could use the same file path, so WK2 may delete the
     11        file while WK1 is using it.
     12
     13        * Storage/StorageTracker.cpp:
     14        (WebKit::StorageTracker::trackerDatabasePath):
     15
    1162018-10-18  Alexey Proskuryakov  <ap@apple.com>
    217
  • trunk/Source/WebKitLegacy/Storage/StorageTracker.cpp

    r237266 r237330  
    105105{
    106106    ASSERT(!m_databaseMutex.tryLock());
    107     return FileSystem::pathByAppendingComponent(m_storageDirectoryPath, "StorageTracker.db");
     107    return FileSystem::pathByAppendingComponent(m_storageDirectoryPath, "LegacyStorageTracker.db");
    108108}
    109109
Note: See TracChangeset for help on using the changeset viewer.