Backed out changeset 4f0f6745c23d (bug 1158387) for failing extensions/cookie/test/unit/test_cookies_async_failure.js on Windows 7 VM opt. r=backout
authorSebastian Hengst <archaeopteryx@coole-files.de>
Mon, 22 May 2017 22:03:32 +0200
changeset 360100 e6fa2aa73b4631408611e61c715c5f1dc28db49a
parent 360099 e7575b0dd085856c842615e7a1e7e9bfb12e453d
child 360101 57a57857725d01016eca8e8f9b1f38d7ffc75ce2
push id31868
push userryanvm@gmail.com
push dateTue, 23 May 2017 14:32:52 +0000
treeherdermozilla-central@3a82a745123f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbackout
bugs1158387
milestone55.0a1
backs out4f0f6745c23d3c34a70416f3502387f82beaec6a
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Backed out changeset 4f0f6745c23d (bug 1158387) for failing extensions/cookie/test/unit/test_cookies_async_failure.js on Windows 7 VM opt. r=backout
netwerk/cookie/nsCookieService.cpp
--- a/netwerk/cookie/nsCookieService.cpp
+++ b/netwerk/cookie/nsCookieService.cpp
@@ -1469,16 +1469,20 @@ nsCookieService::TryInitDB(bool aRecreat
 
         rv = CreateTable();
         NS_ENSURE_SUCCESS(rv, RESULT_RETRY);
       }
       break;
     }
   }
 
+  // make operations on the table asynchronous, for performance
+  mDefaultDBState->dbConn->ExecuteSimpleSQL(NS_LITERAL_CSTRING(
+    "PRAGMA synchronous = OFF"));
+
   // Use write-ahead-logging for performance. We cap the autocheckpoint limit at
   // 16 pages (around 500KB).
   mDefaultDBState->dbConn->ExecuteSimpleSQL(NS_LITERAL_CSTRING(
     MOZ_STORAGE_UNIQUIFY_QUERY_STR "PRAGMA journal_mode = WAL"));
   mDefaultDBState->dbConn->ExecuteSimpleSQL(NS_LITERAL_CSTRING(
     "PRAGMA wal_autocheckpoint = 16"));
 
   // cache frequently used statements (for insertion, deletion, and updating)