Bug 408914 - "Disable sqlite async IO" [p=vladimir@pobox.com (Vladimir Vukicevic [vlad]) r=sdwilsh a1.9=beltzner]
authorreed@reedloden.com
Mon, 07 Jan 2008 00:27:25 -0800
changeset 9974 dfd4d9308467522f3002747168c33dd5870e0e61
parent 9973 6d9fa09ae44f75d3f3f9b457c54f10de3a9e60f4
child 9975 c9fceccc37ca37fabd2a29fc4d8a670c9fa121b2
push idunknown
push userunknown
push dateunknown
reviewerssdwilsh
bugs408914
milestone1.9b3pre
Bug 408914 - "Disable sqlite async IO" [p=vladimir@pobox.com (Vladimir Vukicevic [vlad]) r=sdwilsh a1.9=beltzner]
storage/src/mozStorageService.cpp
--- a/storage/src/mozStorageService.cpp
+++ b/storage/src/mozStorageService.cpp
@@ -86,26 +86,30 @@ mozStorageService::Init()
     // main thread during shutdown. If the thread is created from a random
     // thread, we'll join to the wrong parent.
     NS_ENSURE_STATE(NS_IsMainThread());
 
     // this makes multiple connections to the same database share the same pager
     // 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<nsIObserverService> observerService = 
             do_GetService("@mozilla.org/observer-service;1", &rv);
     NS_ENSURE_SUCCESS(rv, rv);
 
     rv = InitStorageAsyncIO();
     NS_ENSURE_SUCCESS(rv, rv);
 
     rv = observerService->AddObserver(this, kShutdownMessage, PR_FALSE);
     NS_ENSURE_SUCCESS(rv, rv);
+#endif
 
     return NS_OK;
 }
 
 #ifndef NS_APP_STORAGE_50_FILE
 #define NS_APP_STORAGE_50_FILE "UStor"
 #endif