зеркало из https://github.com/mozilla/gecko-dev.git
Bug 843005 - Disable Android SQLite locking in databases for REL 11 and higher r=kats
This commit is contained in:
Родитель
960a39637a
Коммит
1e502ef718
|
@ -1774,6 +1774,7 @@ public class BrowserProvider extends ContentProvider {
|
|||
// commands in parallel using multiple connections.
|
||||
if (Build.VERSION.SDK_INT >= 11) {
|
||||
db.enableWriteAheadLogging();
|
||||
db.setLockingEnabled(false);
|
||||
} else {
|
||||
// Pre-Honeycomb, we can do some lesser optimizations.
|
||||
cursor = null;
|
||||
|
|
|
@ -196,6 +196,7 @@ public class TabsProvider extends ContentProvider {
|
|||
// commands in parallel using multiple connections.
|
||||
if (Build.VERSION.SDK_INT >= 11) {
|
||||
db.enableWriteAheadLogging();
|
||||
db.setLockingEnabled(false);
|
||||
} else {
|
||||
// Pre-Honeycomb, we can do some lesser optimizations.
|
||||
cursor = null;
|
||||
|
|
Загрузка…
Ссылка в новой задаче