]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/dird/verify.c
kes Update copyright date in program files, and for the most part
[bacula/bacula] / bacula / src / dird / verify.c
index 84a2ba196c88efeed50e20f05e33f71a873222fd..a83c1b1cba1529cf77f1b2ffc0db7fa2969f5ab7 100644 (file)
@@ -57,6 +57,8 @@ bool do_verify_init(JCR *jcr)
    JobId_t verify_jobid = 0;
    const char *Name;
 
+   free_wstorage(jcr);                   /* we don't write */
+
    memset(&jcr->previous_jr, 0, sizeof(jcr->previous_jr));
 
    Dmsg1(9, "bdird: created client %s record\n", jcr->client->hdr.name);
@@ -171,7 +173,7 @@ bool do_verify(JCR *jcr)
       /*
        * Now start a job with the Storage daemon
        */
-      if (!start_storage_daemon_job(jcr, jcr->storage, NULL)) {
+      if (!start_storage_daemon_job(jcr, jcr->rstorage, NULL)) {
          return false;
       }
       if (!bnet_fsend(jcr->store_bsock, "run")) {
@@ -224,10 +226,10 @@ bool do_verify(JCR *jcr)
       /*
        * send Storage daemon address to the File daemon
        */
-      if (jcr->store->SDDport == 0) {
-         jcr->store->SDDport = jcr->store->SDport;
+      if (jcr->rstore->SDDport == 0) {
+         jcr->rstore->SDDport = jcr->rstore->SDport;
       }
-      bnet_fsend(fd, storaddr, jcr->store->address, jcr->store->SDDport);
+      bnet_fsend(fd, storaddr, jcr->rstore->address, jcr->rstore->SDDport);
       if (!response(jcr, fd, OKstore, "Storage", DISPLAY_ERROR)) {
          return false;
       }