Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit ac74a023 authored by Lee Shombert's avatar Lee Shombert
Browse files

Report multiple in-process primary connections

This adds dumpsys and logcat reporting for multiple primary
connections to a single database file.  Multiple primary connections
are not bad by themselves but misuse can lead to SQLITE_BUSY
failures. These changes are meant to simplify debugging the
SQLITE_BUSY failures.

If any database file is opened more than once (concurrently) then the
dumpsys output contains the following text:

    Concurrently opened database files
      <list of files>

If no database files were opened concurrently then the dumpsys output
does not contain the specified block.

This change only detects multiple primary connections in a single
process.

Test: atest
 * FrameworksCoreTests:android.database
 * CtsDatabaseTestCases
 * SQLiteDatabasePerfTest

Bug: 309135899

Change-Id: I6550c4a0d6ff0785f67bd9d7d539c1ac52828b87
parent 2014926d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment