diff options
author | Yevgen Pronenko <yevgen.pronenko@sonymobile.com> | 2012-08-13 13:52:21 +0200 |
---|---|---|
committer | Johan Redestig <johan.redestig@sonymobile.com> | 2012-12-11 09:30:58 +0100 |
commit | 4de6f2cff1d6b23c5c4cd78a247360aad5c7a92c (patch) | |
tree | d8c4d27af1030e2eea6f959b7861aca2d9a3b674 /packages | |
parent | 568f923ba4cf522f699837bee0d8cba318343345 (diff) | |
download | frameworks_base-4de6f2cff1d6b23c5c4cd78a247360aad5c7a92c.zip frameworks_base-4de6f2cff1d6b23c5c4cd78a247360aad5c7a92c.tar.gz frameworks_base-4de6f2cff1d6b23c5c4cd78a247360aad5c7a92c.tar.bz2 |
Disable usage of WAL in DatabaseHelper
According to SQLite documentation, WAL can not be used when database
partition is not accessible for writing (even when the client just
performs read operation).
However, such situation may happen when the partition is full.
As SettingsProvider should always be able to read a value of ANDROID_ID
from corresponding database, this commit disables usage of WAL.
Without this we risk ending up in a situation where /data is full
and the phone is unable to boot properly.
Change-Id: I1f79bbcd8d0f64bf35dc9d7b846bcfb2664d2eac
Diffstat (limited to 'packages')
-rw-r--r-- | packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java b/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java index b649b43..cc52a83 100644 --- a/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java +++ b/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java @@ -109,7 +109,6 @@ public class DatabaseHelper extends SQLiteOpenHelper { super(context, dbNameForUser(userHandle), null, DATABASE_VERSION); mContext = context; mUserHandle = userHandle; - setWriteAheadLoggingEnabled(true); } public static boolean isValidTable(String name) { |