]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Use more specific Job status when verify job is waiting for SD or FD
authorEric Bollengier <eric@baculasystems.com>
Mon, 12 Jun 2023 07:05:56 +0000 (09:05 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:57:01 +0000 (13:57 +0200)
bacula/src/dird/verify.c

index 07a4d5a7a91a6b2216fcb01cbfe11a06b731cfc1..d69a03747157d05e001986d6956cc0538d38ba2a 100644 (file)
@@ -272,7 +272,7 @@ bool do_verify(JCR *jcr)
       /*
        * Start conversation with Storage daemon
        */
-      jcr->setJobStatus(JS_Blocked);
+      jcr->setJobStatus(JS_WaitSD);
       if (!connect_to_storage_daemon(jcr, 10, SDConnectTimeout, 1)) {
          Jmsg(jcr, M_FATAL, 0, "%s", jcr->errmsg);
          return false;
@@ -307,7 +307,7 @@ bool do_verify(JCR *jcr)
     * OK, now connect to the File daemon
     *  and ask him for the files.
     */
-   jcr->setJobStatus(JS_Blocked);
+   jcr->setJobStatus(JS_WaitFD);
    if (!connect_to_file_daemon(jcr, 10, FDConnectTimeout, 1)) {
       Jmsg(jcr, M_FATAL, 0, "%s", jcr->errmsg);
       goto bail_out;