summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Fyodor Kupolov <fkupolov@google.com> 2017-09-01 17:45:27 +0000
committer android-build-merger <android-build-merger@google.com> 2017-09-01 17:45:27 +0000
commiteb952ab3d02a52152257466814e1cba5d92ab153 (patch)
treea869010937ebf30af5ab0d052f2f51cd4fdb9b9d
parent7505f4d5aef95edc6444768068345f936b0036a2 (diff)
parent6f8afdc501208897ad8e47add5426632e82ebaee (diff)
Merge "Do not close idle connections by default" into oc-mr1-dev
am: 6f8afdc501 Change-Id: Icda0c6495682077725849f96855421f395cd8ff5
-rw-r--r--core/java/android/database/sqlite/SQLiteDatabase.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/database/sqlite/SQLiteDatabase.java b/core/java/android/database/sqlite/SQLiteDatabase.java
index 59fb269c71fc..df0e262b712f 100644
--- a/core/java/android/database/sqlite/SQLiteDatabase.java
+++ b/core/java/android/database/sqlite/SQLiteDatabase.java
@@ -79,8 +79,9 @@ public final class SQLiteDatabase extends SQLiteClosable {
private static final int EVENT_DB_CORRUPT = 75004;
+ // By default idle connections are not closed
private static final boolean DEBUG_CLOSE_IDLE_CONNECTIONS = SystemProperties
- .getBoolean("persist.debug.sqlite.close_idle_connections", true);
+ .getBoolean("persist.debug.sqlite.close_idle_connections", false);
// Stores reference to all databases opened in the current process.
// (The referent Object is not used at this time.)