Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4e11ab97 authored by Vasu Nori's avatar Vasu Nori Committed by Android Git Automerger
Browse files

am 8e6a513c: Merge "set default mode of WAL to be off." into honeycomb

* commit '8e6a513c':
  set default mode of WAL to be off.
parents d7c56410 8e6a513c
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -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) {