From 988a018fa9d468d54a08247eba2ebf928f951efa Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Thu, 10 Nov 2022 16:13:14 +0100 Subject: [PATCH] Store verified JobId/Job name inside PriorJob and PriorJobId Verify job --- bacula/src/dird/verify.c | 4 ++++ 1 file changed, 4 insertions(+) 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"), -- 2.47.3