OSDN Git Service

Keep close_idle_connections optimization for all devices
authorFyodor Kupolov <fkupolov@google.com>
Wed, 23 Aug 2017 23:36:15 +0000 (16:36 -0700)
committerFyodor Kupolov <fkupolov@google.com>
Wed, 23 Aug 2017 23:36:15 +0000 (16:36 -0700)
commit2c7e249b847eb26e2512b3cdcfd3ff28cf0fc427
tree05e98e6a8f085bda8b34e8053dd7f0bb1dc4a876
parentf394ac4eba169395c6dcd220b01cec3c2eed96be
Keep close_idle_connections optimization for all devices

Internal compatibility testing didn't reveal any issues related to it.

Rationale to not make it specific to low-ram:
1) Consistent behavior from app perspective. close_idle_connections
   is a behavioural change and may affect apps relying on undocumented
   behavior of connection pooling. Developers can detect problems
   without testing on low-ram device
2) Closing idle connections is especially important in WAL mode.
   Disabling this feature would become an issue if more apps are
   switching to WAL and we would need to re-enable this optimization.

Test: n/a
Bug: 63398887
Change-Id: I1b431f44daa2d337aad7f12f8e1409ae3143ded0
core/java/android/database/sqlite/SQLiteDatabase.java