Bug 616019 - Maemo - 10mb places.sqlite database due to aggressive file growth. r=sdwilsh a=blocking-fennec
authorDoug Turner <dougt@dougt.org>
Thu, 09 Dec 2010 10:14:16 -0800
changeset 59017 1ad47fdb91950cb9e70f38d05d8bbd8a2bfebc7b
parent 59016 888943a301310c2577552f46d5ad3d06a9047276
child 59018 ebac1eeb81928adabf70b0ce3ef0b859ff23e062
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
reviewerssdwilsh, blocking-fennec
bugs616019
milestone2.0b8pre
Bug 616019 - Maemo - 10mb places.sqlite database due to aggressive file growth. r=sdwilsh a=blocking-fennec
storage/src/mozStorageConnection.cpp
--- a/storage/src/mozStorageConnection.cpp
+++ b/storage/src/mozStorageConnection.cpp
@@ -1108,17 +1108,17 @@ Connection::RemoveProgressHandler(mozISt
 }
 
 NS_IMETHODIMP
 Connection::SetGrowthIncrement(PRInt32 aChunkSize, const nsACString &aDatabaseName)
 {
   // Bug 597215: Disk space is extremely limited on Android
   // so don't preallocate space. This is also not effective
   // on log structured file systems used by Android devices
-#ifndef ANDROID
+#if !defined(ANDROID) && !defined(MOZ_PLATFORM_MAEMO)
   (void)::sqlite3_file_control(mDBConn,
                                aDatabaseName.Length() ? nsPromiseFlatCString(aDatabaseName).get() : NULL,
                                SQLITE_FCNTL_CHUNK_SIZE,
                                &aChunkSize);
 #endif
   return NS_OK;
 }