Compare commits

...

2 Commits

Author SHA1 Message Date
Greyson Parrelli
264a47addf Bump version to 6.32.5 2023-09-14 17:01:33 -04:00
Greyson Parrelli
1c30a077c5 Fix possible crash during JobDatabase upgrade.
This seems to be a SQLite/SQLCipher caching issue.

Fixes #13172
2023-09-14 17:01:05 -04:00
2 changed files with 22 additions and 7 deletions

View File

@@ -49,14 +49,14 @@ ktlint {
}
def canonicalVersionCode = 1327
def canonicalVersionName = "6.32.4"
def canonicalVersionName = "6.32.5"
def postFixSize = 100
def abiPostFix = ['universal' : 0,
'armeabi-v7a' : 1,
'arm64-v8a' : 2,
'x86' : 3,
'x86_64' : 4]
def abiPostFix = ['universal' : 5,
'armeabi-v7a' : 6,
'arm64-v8a' : 7,
'x86' : 8,
'x86_64' : 9]
def keystores = [ 'debug' : loadKeystoreProperties('keystore.debug.properties') ]

View File

@@ -178,8 +178,23 @@ class JobDatabase(
@Synchronized
fun getAllJobSpecs(): List<JobSpec> {
val columns = arrayOf(
Jobs.ID,
Jobs.JOB_SPEC_ID,
Jobs.FACTORY_KEY,
Jobs.QUEUE_KEY,
Jobs.CREATE_TIME,
Jobs.LAST_RUN_ATTEMPT_TIME,
Jobs.NEXT_BACKOFF_INTERVAL,
Jobs.RUN_ATTEMPT,
Jobs.MAX_ATTEMPTS,
Jobs.LIFESPAN,
Jobs.SERIALIZED_DATA,
Jobs.SERIALIZED_INPUT_DATA,
Jobs.IS_RUNNING
)
return readableDatabase
.query(Jobs.TABLE_NAME, null, null, null, null, null, "${Jobs.CREATE_TIME}, ${Jobs.ID} ASC")
.query(Jobs.TABLE_NAME, columns, null, null, null, null, "${Jobs.CREATE_TIME}, ${Jobs.ID} ASC")
.readToList { cursor ->
jobSpecFromCursor(cursor)
}