Title: [111526] trunk/Source/WebCore
Revision
111526
Author
[email protected]
Date
2012-03-21 05:21:01 -0700 (Wed, 21 Mar 2012)

Log Message

[Qt] Cookie Jar blocks on fsync in SQLITE
https://bugs.webkit.org/show_bug.cgi?id=81755

Patch by Allan Sandfeld Jensen <[email protected]> on 2012-03-21
Reviewed by Simon Hausmann.

Set PRAGMA synchronous to OFF, which tells SQLITE to never fsync.

* platform/qt/CookieJarQt.cpp:
(WebCore::SharedCookieJarQt::ensureDatabaseTable):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (111525 => 111526)


--- trunk/Source/WebCore/ChangeLog	2012-03-21 12:13:36 UTC (rev 111525)
+++ trunk/Source/WebCore/ChangeLog	2012-03-21 12:21:01 UTC (rev 111526)
@@ -1,3 +1,15 @@
+2012-03-21  Allan Sandfeld Jensen  <[email protected]>
+
+        [Qt] Cookie Jar blocks on fsync in SQLITE
+        https://bugs.webkit.org/show_bug.cgi?id=81755
+
+        Reviewed by Simon Hausmann.
+
+        Set PRAGMA synchronous to OFF, which tells SQLITE to never fsync.
+
+        * platform/qt/CookieJarQt.cpp:
+        (WebCore::SharedCookieJarQt::ensureDatabaseTable):
+
 2012-03-21  Ian Vollick  <[email protected]>
 
         [chromium] Animation events should only be used for synchronizing animation start times

Modified: trunk/Source/WebCore/platform/qt/CookieJarQt.cpp (111525 => 111526)


--- trunk/Source/WebCore/platform/qt/CookieJarQt.cpp	2012-03-21 12:13:36 UTC (rev 111525)
+++ trunk/Source/WebCore/platform/qt/CookieJarQt.cpp	2012-03-21 12:21:01 UTC (rev 111526)
@@ -277,6 +277,8 @@
         qWarning("Can't open cookie database");
         return;
     }
+    m_database.exec(QLatin1String("PRAGMA synchronous=OFF"));
+
     QSqlQuery sqlQuery(m_database);
     sqlQuery.prepare(QLatin1String("CREATE TABLE IF NOT EXISTS cookies (cookieId VARCHAR PRIMARY KEY, cookie BLOB);"));
     sqlQuery.exec();
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to