From: Eric Bollengier Date: Thu, 10 Nov 2022 15:13:14 +0000 (+0100) Subject: Store verified JobId/Job name inside PriorJob and PriorJobId Verify job X-Git-Tag: Beta-15.0.0~373 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=988a018fa9d468d54a08247eba2ebf928f951efa;p=thirdparty%2Fbacula.git Store verified JobId/Job name inside PriorJob and PriorJobId Verify job --- diff --git a/bacula/src/dird/verify.c b/bacula/src/dird/verify.c index 040e6a296..6a7280eef 100644 --- a/bacula/src/dird/verify.c +++ b/bacula/src/dird/verify.c @@ -164,6 +164,10 @@ bool do_verify(JCR *jcr) db_strerror(jcr->db)); return false; } + /* Keep the reference in the Job table to determine what is verified */ + jcr->jr.PriorJobId = jcr->previous_jr.JobId; + bstrncpy(jcr->jr.PriorJob, jcr->previous_jr.Job, sizeof(jcr->jr.PriorJob)); + if (!(jcr->previous_jr.JobStatus == JS_Terminated || jcr->previous_jr.JobStatus == JS_Warnings)) { Jmsg(jcr, M_FATAL, 0, _("Last Job %d did not terminate normally. JobStatus=%c\n"),