Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
set default mode of WAL to be off.
Browse files Browse the repository at this point in the history
apps will have to enable WAL explicitly.

Change-Id: Iba5c47a40f465e668ef0d538282230e99fe04ce6
  • Loading branch information
vnorigoog committed Jan 6, 2011
1 parent faba502 commit a22d884
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions core/java/android/database/sqlite/SQLiteDatabase.java
Original file line number Diff line number Diff line change
Expand Up @@ -958,13 +958,7 @@ public static SQLiteDatabase openDatabase(String path, CursorFactory factory, in
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) {
Expand Down

0 comments on commit a22d884

Please sign in to comment.