]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Store verified JobId/Job name inside PriorJob and PriorJobId Verify job
authorEric Bollengier <eric@baculasystems.com>
Thu, 10 Nov 2022 15:13:14 +0000 (16:13 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:57:00 +0000 (13:57 +0200)
bacula/src/dird/verify.c

index 040e6a2969ff18698a299b9ef2e22cd9a5a96664..6a7280eef871740d367635ec81197e4de503c0c7 100644 (file)
@@ -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"),