]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/read.c
Remove broken run when code
[bacula/bacula] / bacula / src / stored / read.c
index f23c71b02f73a893fa583291778ed15a5b04f142..6f2c5b01c3cb0b50b939e4a5eed53ac55913a6b3 100644 (file)
@@ -64,14 +64,14 @@ bool do_read_data(JCR *jcr)
 
 
    create_restore_volume_list(jcr);
-   if (jcr->NumVolumes == 0) {
+   if (jcr->NumReadVolumes == 0) {
       Jmsg(jcr, M_FATAL, 0, _("No Volume names found for restore.\n"));
       free_restore_volume_list(jcr);
       bnet_fsend(fd, FD_error);
       return false;
    }
 
-   Dmsg2(200, "Found %d volumes names to restore. First=%s\n", jcr->NumVolumes,
+   Dmsg2(200, "Found %d volumes names to restore. First=%s\n", jcr->NumReadVolumes,
       jcr->VolList->VolumeName);
 
    /* Ready device for reading */