Changeset 244645 in webkit
- Timestamp:
- Apr 25, 2019 8:50:18 AM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r244644 r244645 1 2019-04-25 Youenn Fablet <youenn@apple.com> 2 3 [Mac iOS WK2] Layout Test http/wpt/cache-storage/cache-quota-after-restart.any.html is a flaky failure 4 https://bugs.webkit.org/show_bug.cgi?id=197040 5 <rdar://problem/49997641> 6 7 Reviewed by Antti Koivisto. 8 9 Delay write operations in case synchronize is ongoing. 10 This is restricted to AvoidRandomness mode which is always used by CacheAPI 11 and is also used by network cache for layout tests. 12 13 Tested by cache-quota-after-restart.any.html no longer exhibiting write disk errors. 14 15 * NetworkProcess/cache/NetworkCacheStorage.cpp: 16 (WebKit::NetworkCache::Storage::synchronize): 17 (WebKit::NetworkCache::Storage::store): 18 1 19 2019-04-25 Commit Queue <commit-queue@webkit.org> 2 20 -
trunk/Source/WebKit/NetworkProcess/cache/NetworkCacheStorage.cpp
r243143 r244645 350 350 m_approximateRecordsSize = recordsSize; 351 351 m_synchronizationInProgress = false; 352 if (m_mode == Mode::AvoidRandomness) 353 dispatchPendingWriteOperations(); 352 354 }); 353 355 … … 898 900 899 901 bool isInitialWrite = m_pendingWriteOperations.size() == 1; 900 if (!isInitialWrite )902 if (!isInitialWrite || (m_synchronizationInProgress && m_mode == Mode::AvoidRandomness)) 901 903 return; 902 904
Note: See TracChangeset
for help on using the changeset viewer.