diff options
| author | Jeff Brown <jeffbrown@google.com> | 2012-03-22 18:05:39 -0700 |
|---|---|---|
| committer | Jeff Brown <jeffbrown@google.com> | 2012-03-22 18:11:55 -0700 |
| commit | 9ac2d3bcde40abce8ab8af56560ea6b3ee5f9941 (patch) | |
| tree | 961195d616d6efca45b28254ce671dd70e0f1c49 /core/java/android/webkit/WebViewDatabase.java | |
| parent | d67c8c67899481682657d41a61f3846b8d77d165 (diff) | |
Do not enable WAL mode for the WebView database.
There is no need to enable WAL for the WebView database because it
does not require high throughput.
Enabling WAL increases memory usage and can also cause problems if
the same database is opened in multiple processes, which can happen
if an application has UI code running in multiple processes. Normally,
we would use a content provider to ensure that the database is only
opened within one process (and then accessed remotely view RPC), but
we can't do that for WebView because it is part of the framework.
Deleted the call to setLockingEnabled. It does nothing.
Bug: 6124556
Change-Id: Ic397c74872fe6b1246da0c859eab0d5147045c86
Diffstat (limited to 'core/java/android/webkit/WebViewDatabase.java')
| -rw-r--r-- | core/java/android/webkit/WebViewDatabase.java | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/core/java/android/webkit/WebViewDatabase.java b/core/java/android/webkit/WebViewDatabase.java index 757a619ffe6b..6c35f199bb5d 100644 --- a/core/java/android/webkit/WebViewDatabase.java +++ b/core/java/android/webkit/WebViewDatabase.java @@ -144,7 +144,6 @@ public class WebViewDatabase { null); } } - mDatabase.enableWriteAheadLogging(); // mDatabase should not be null, // the only case is RequestAPI test has problem to create db @@ -163,11 +162,6 @@ public class WebViewDatabase { mDatabase.endTransaction(); } } - - // use per table Mutex lock, turn off database lock, this - // improves performance as database's ReentrantLock is - // expansive - mDatabase.setLockingEnabled(false); } private static void upgradeDatabase() { |
