Title: [244272] branches/safari-607-branch/Source/WebCore/platform/sql/SQLiteDatabase.cpp
Revision
244272
Author
bshaf...@apple.com
Date
2019-04-15 10:36:34 -0700 (Mon, 15 Apr 2019)

Log Message

Apply patch. rdar://problem/49308059

Modified Paths


Diff

Modified: branches/safari-607-branch/Source/WebCore/platform/sql/SQLiteDatabase.cpp (244271 => 244272)


--- branches/safari-607-branch/Source/WebCore/platform/sql/SQLiteDatabase.cpp	2019-04-15 17:31:46 UTC (rev 244271)
+++ branches/safari-607-branch/Source/WebCore/platform/sql/SQLiteDatabase.cpp	2019-04-15 17:36:34 UTC (rev 244272)
@@ -30,6 +30,7 @@
 #include "DatabaseAuthorizer.h"
 #include "Logging.h"
 #include "MemoryRelease.h"
+#include "SQLiteDatabaseTracker.h"
 #include "SQLiteFileSystem.h"
 #include "SQLiteStatement.h"
 #include <mutex>
@@ -125,6 +126,7 @@
     }
 
     {
+        SQLiteTransactionInProgressAutoCounter transactionCounter;
         SQLiteStatement checkpointStatement(*this, "PRAGMA wal_checkpoint(TRUNCATE)"_s);
         if (checkpointStatement.prepareAndStep() == SQLITE_ROW) {
             if (checkpointStatement.getColumnInt(0))
@@ -146,6 +148,7 @@
             LockHolder locker(m_databaseClosingMutex);
             m_db = 0;
         }
+        SQLiteTransactionInProgressAutoCounter transactionCounter;
         sqlite3_close(db);
     }
 
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to