mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-25 05:27:42 +00:00
Fix crash with AnalyzeDatabaseJob.
This commit is contained in:
committed by
Alex Hart
parent
e4019d8595
commit
f32b59f0aa
@@ -75,8 +75,8 @@ class AnalyzeDatabaseJob private constructor(
|
||||
val table = tables[startingIndex]
|
||||
|
||||
logTime(TAG, "analyze-$table", decimalPlaces = 2) {
|
||||
SignalDatabase.rawDatabase.execSQL("PRAGMA analysis_limit=1000")
|
||||
SignalDatabase.rawDatabase.execSQL("ANALYZE $table")
|
||||
SignalDatabase.rawDatabase.rawQuery("PRAGMA analysis_limit=1000")
|
||||
SignalDatabase.rawDatabase.rawQuery("ANALYZE $table")
|
||||
}
|
||||
|
||||
if (startingIndex >= tables.size - 1) {
|
||||
|
||||
Reference in New Issue
Block a user