Title: [243585] branches/safari-607-branch/Source/WebCore/platform/sql/SQLiteDatabase.cpp
- Revision
- 243585
- Author
- alanc...@apple.com
- Date
- 2019-03-27 16:44:14 -0700 (Wed, 27 Mar 2019)
Log Message
Apply patch. rdar://problem/49308059
Modified Paths
Diff
Modified: branches/safari-607-branch/Source/WebCore/platform/sql/SQLiteDatabase.cpp (243584 => 243585)
--- branches/safari-607-branch/Source/WebCore/platform/sql/SQLiteDatabase.cpp 2019-03-27 23:44:12 UTC (rev 243584)
+++ branches/safari-607-branch/Source/WebCore/platform/sql/SQLiteDatabase.cpp 2019-03-27 23:44:14 UTC (rev 243585)
@@ -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