We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f98830 commit 31bbbccCopy full SHA for 31bbbcc
src/modules/job-list/job_db.c
@@ -424,10 +424,10 @@ int job_db_store (struct job_db_ctx *ctx, struct job *job)
424
* written out on occasion leading to a SQLITE_CONSTRAINT error.
425
* We accept this and move on.
426
*/
427
- int err = sqlite3_errcode (ctx->db);
428
- if (err == SQLITE_CONSTRAINT)
+ int errcode = sqlite3_errcode (ctx->db);
+ if (errcode == SQLITE_CONSTRAINT)
429
break;
430
- else if (err == SQLITE_BUSY) {
+ else if (errcode == SQLITE_BUSY) {
431
/* In the rare case this cannot complete within the normal
432
* busytimeout, we elect to spin till it completes. This
433
* may need to be revisited in the future: */
0 commit comments