Title: [289286] branches/safari-613-branch/Source/WebCore
Revision
289286
Author
[email protected]
Date
2022-02-07 18:54:08 -0800 (Mon, 07 Feb 2022)

Log Message

Cherry-pick r288223. rdar://problem/87741289

    Assertion is not acquired in network process when setting database journal mode
    https://bugs.webkit.org/show_bug.cgi?id=235340

    Setting database journal mode requires lock, so network process needs to stay active by holding assertion.

    Reviewed by Chris Dumez.

    * platform/sql/SQLiteDatabase.cpp:
    (WebCore::SQLiteDatabase::useWALJournalMode):

    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@288223 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Modified Paths

Diff

Modified: branches/safari-613-branch/Source/WebCore/ChangeLog (289285 => 289286)


--- branches/safari-613-branch/Source/WebCore/ChangeLog	2022-02-08 02:54:05 UTC (rev 289285)
+++ branches/safari-613-branch/Source/WebCore/ChangeLog	2022-02-08 02:54:08 UTC (rev 289286)
@@ -1,5 +1,34 @@
 2022-02-07  Russell Epstein  <[email protected]>
 
+        Cherry-pick r288223. rdar://problem/87741289
+
+    Assertion is not acquired in network process when setting database journal mode
+    https://bugs.webkit.org/show_bug.cgi?id=235340
+    
+    Setting database journal mode requires lock, so network process needs to stay active by holding assertion.
+    
+    Reviewed by Chris Dumez.
+    
+    * platform/sql/SQLiteDatabase.cpp:
+    (WebCore::SQLiteDatabase::useWALJournalMode):
+    
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@288223 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2022-01-19  Sihui Liu  <[email protected]>
+
+            Assertion is not acquired in network process when setting database journal mode
+            https://bugs.webkit.org/show_bug.cgi?id=235340
+
+            Setting database journal mode requires lock, so network process needs to stay active by holding assertion.
+
+            Reviewed by Chris Dumez.
+
+            * platform/sql/SQLiteDatabase.cpp:
+            (WebCore::SQLiteDatabase::useWALJournalMode):
+
+2022-02-07  Russell Epstein  <[email protected]>
+
         Cherry-pick r288196. rdar://problem/87768936
 
     [:has() pseudo-class] Compute specificity correctly

Modified: branches/safari-613-branch/Source/WebCore/platform/sql/SQLiteDatabase.cpp (289285 => 289286)


--- branches/safari-613-branch/Source/WebCore/platform/sql/SQLiteDatabase.cpp	2022-02-08 02:54:05 UTC (rev 289285)
+++ branches/safari-613-branch/Source/WebCore/platform/sql/SQLiteDatabase.cpp	2022-02-08 02:54:08 UTC (rev 289286)
@@ -225,6 +225,7 @@
 {
     m_useWAL = true;
     {
+        SQLiteTransactionInProgressAutoCounter transactionCounter;
         auto walStatement = prepareStatement("PRAGMA journal_mode=WAL;"_s);
         if (walStatement && walStatement->step() == SQLITE_ROW) {
 #ifndef NDEBUG
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to