Skip to content

Commit 31bbbcc

Browse files
committed
fixup! job-list: add job db
1 parent 9f98830 commit 31bbbcc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/modules/job-list/job_db.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -424,10 +424,10 @@ int job_db_store (struct job_db_ctx *ctx, struct job *job)
424424
* written out on occasion leading to a SQLITE_CONSTRAINT error.
425425
* We accept this and move on.
426426
*/
427-
int err = sqlite3_errcode (ctx->db);
428-
if (err == SQLITE_CONSTRAINT)
427+
int errcode = sqlite3_errcode (ctx->db);
428+
if (errcode == SQLITE_CONSTRAINT)
429429
break;
430-
else if (err == SQLITE_BUSY) {
430+
else if (errcode == SQLITE_BUSY) {
431431
/* In the rare case this cannot complete within the normal
432432
* busytimeout, we elect to spin till it completes. This
433433
* may need to be revisited in the future: */

0 commit comments

Comments
 (0)