set default mode of WAL to be off.

apps will have to enable WAL explicitly.

Change-Id: Iba5c47a40f465e668ef0d538282230e99fe04ce6
This commit is contained in:
Vasu Nori
2011-01-06 08:30:29 -08:00
parent faba502a8d
commit a22d88493e

View File

@@ -958,13 +958,7 @@ public class SQLiteDatabase extends SQLiteClosable {
sBlockSize = new StatFs("/data").getBlockSize();
}
sqliteDatabase.setPageSize(sBlockSize);
//STOPSHIP - uncomment the following line
//sqliteDatabase.setJournalMode(path, "TRUNCATE");
// STOPSHIP remove the following lines
if (!path.equalsIgnoreCase(MEMORY_DB_PATH)) {
sqliteDatabase.enableWriteAheadLogging();
}
// END STOPSHIP
sqliteDatabase.setJournalMode(path, "TRUNCATE");
// add this database to the list of databases opened in this process
synchronized(mActiveDatabases) {