diff options
author | Jeff Brown <jeffbrown@google.com> | 2012-03-22 19:22:05 -0700 |
---|---|---|
committer | Jeff Brown <jeffbrown@google.com> | 2012-03-22 19:22:05 -0700 |
commit | 510a36ee89658e36488bad6c8785046fc43f94c7 (patch) | |
tree | d3bb4eaeeba9a297f25c596a8ac5fd99efcfbdc7 /src/com/android/browser/provider | |
parent | 1bd34b1eea15f15fc483ad2245b17d67a36c51a4 (diff) | |
download | packages_apps_Browser-510a36ee89658e36488bad6c8785046fc43f94c7.zip packages_apps_Browser-510a36ee89658e36488bad6c8785046fc43f94c7.tar.gz packages_apps_Browser-510a36ee89658e36488bad6c8785046fc43f94c7.tar.bz2 |
Enable WAL mode using new API, which is more efficient.
Bug: 6124556
Change-Id: I49b6ba6706878d0e78d8457cde7cb9055663bfe0
Diffstat (limited to 'src/com/android/browser/provider')
-rw-r--r-- | src/com/android/browser/provider/BrowserProvider2.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/browser/provider/BrowserProvider2.java b/src/com/android/browser/provider/BrowserProvider2.java index 8d71266..6121abc 100644 --- a/src/com/android/browser/provider/BrowserProvider2.java +++ b/src/com/android/browser/provider/BrowserProvider2.java @@ -386,6 +386,7 @@ public class BrowserProvider2 extends SQLiteContentProvider { static final int DATABASE_VERSION = 32; public DatabaseHelper(Context context) { super(context, DATABASE_NAME, null, DATABASE_VERSION); + setWriteAheadLoggingEnabled(true); } @Override @@ -624,7 +625,6 @@ public class BrowserProvider2 extends SQLiteContentProvider { } public void onOpen(SQLiteDatabase db) { - db.enableWriteAheadLogging(); mSyncHelper.onDatabaseOpened(db); } |