REGRESSION (r209144): API test IndexedDB.DeleteRecovery failing.
authorbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 30 Nov 2016 23:53:23 +0000 (23:53 +0000)
committerbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 30 Nov 2016 23:53:23 +0000 (23:53 +0000)
https://bugs.webkit.org/show_bug.cgi?id=165216

Rubberstamped by Tim Horton.

* Modules/indexeddb/server/SQLiteIDBBackingStore.cpp:
(WebCore::IDBServer::SQLiteIDBBackingStore::closeSQLiteDB): Change invalid ASSERT into a null check.

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

Source/WebCore/ChangeLog
Source/WebCore/Modules/indexeddb/server/SQLiteIDBBackingStore.cpp

index 22a33e6..d4f28af 100644 (file)
@@ -1,3 +1,13 @@
+2016-11-30  Brady Eidson  <beidson@apple.com>
+
+        REGRESSION (r209144): API test IndexedDB.DeleteRecovery failing.
+        https://bugs.webkit.org/show_bug.cgi?id=165216
+
+        Rubberstamped by Tim Horton.
+
+        * Modules/indexeddb/server/SQLiteIDBBackingStore.cpp:
+        (WebCore::IDBServer::SQLiteIDBBackingStore::closeSQLiteDB): Change invalid ASSERT into a null check.
+
 2016-11-30  Said Abou-Hallawa  <sabouhallawa@apple.com>
 
         Add separate settings and preferences to enable/disable async decoding for large images and animated images
index 68f3c77..fb6d378 100644 (file)
@@ -2388,12 +2388,12 @@ SQLiteStatement* SQLiteIDBBackingStore::cachedStatement(SQLiteIDBBackingStore::S
 
 void SQLiteIDBBackingStore::closeSQLiteDB()
 {
-    ASSERT(m_sqliteDB);
-
     for (size_t i = 0; i < static_cast<int>(SQL::Count); ++i)
         m_cachedStatements[i] = nullptr;
 
-    m_sqliteDB->close();
+    if (m_sqliteDB)
+        m_sqliteDB->close();
+
     m_sqliteDB = nullptr;
 }