From 3294ec276da09b1fc1e5c368da04df3f71e4fe12 Mon Sep 17 00:00:00 2001 From: "reed%reedloden.com" Date: Mon, 7 Jan 2008 08:27:25 +0000 Subject: [PATCH] Bug 408914 - "Disable sqlite async IO" [p=vladimir@pobox.com (Vladimir Vukicevic [vlad]) r=sdwilsh a1.9=beltzner] --- storage/src/mozStorageService.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/storage/src/mozStorageService.cpp b/storage/src/mozStorageService.cpp index 93e72678f06..b3c16db45fe 100644 --- a/storage/src/mozStorageService.cpp +++ b/storage/src/mozStorageService.cpp @@ -91,6 +91,9 @@ mozStorageService::Init() // cache. sqlite3_enable_shared_cache(1); + // Disable async IO; need to test to see whether corruption is + // caused by it or not +#if 0 nsresult rv; nsCOMPtr observerService = do_GetService("@mozilla.org/observer-service;1", &rv); @@ -101,6 +104,7 @@ mozStorageService::Init() rv = observerService->AddObserver(this, kShutdownMessage, PR_FALSE); NS_ENSURE_SUCCESS(rv, rv); +#endif return NS_OK; }