Fix dangling open cursors in AnalyzeDatabaseJob.
This commit is contained in:
parent
1a0bbbed54
commit
d8848a2a80
1 changed files with 2 additions and 2 deletions
|
@ -75,8 +75,8 @@ class AnalyzeDatabaseJob private constructor(
|
||||||
val table = tables[startingIndex]
|
val table = tables[startingIndex]
|
||||||
|
|
||||||
logTime(TAG, "analyze-$table", decimalPlaces = 2) {
|
logTime(TAG, "analyze-$table", decimalPlaces = 2) {
|
||||||
SignalDatabase.rawDatabase.rawQuery("PRAGMA analysis_limit=1000")
|
SignalDatabase.rawDatabase.rawQuery("PRAGMA analysis_limit=1000").close()
|
||||||
SignalDatabase.rawDatabase.rawQuery("ANALYZE $table")
|
SignalDatabase.rawDatabase.rawQuery("ANALYZE $table").close()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (startingIndex >= tables.size - 1) {
|
if (startingIndex >= tables.size - 1) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue