]> git.sur5r.net Git - bacula/bacula/commitdiff
Add info message of #jobs consolidated in Virtual Full
authorKern Sibbald <kern@sibbald.com>
Fri, 1 Jan 2016 11:30:44 +0000 (12:30 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 2 Jan 2016 13:56:43 +0000 (14:56 +0100)
bacula/src/dird/vbackup.c

index a965a356c292898f3afc480606da0530ee726874..224fd65a9fc41c2dc2004f636cc36c8b7823ee96 100644 (file)
@@ -576,15 +576,9 @@ static bool create_bootstrap_file(JCR *jcr, char *jobids)
 
    complete_bsr(ua, rx.bsr);
    jcr->ExpectedFiles = write_bsr_file(ua, rx);
-   if (chk_dbglvl(10)) {
-      Pmsg1(000,  "Found %d files to consolidate.\n", jcr->ExpectedFiles);
-   }
-   if (jcr->ExpectedFiles == 0) {
-      free_ua_context(ua);
-      free_bsr(rx.bsr);
-      return false;
-   }
+   Jmsg(jcr, M_INFO, 0, _("Found %d files to consolidate into Virtual Full.\n"),
+        jcr->ExpectedFiles);
    free_ua_context(ua);
    free_bsr(rx.bsr);
-   return true;
+   return jcr->ExpectedFiles==0?false:true;
 }