From: James Harper Date: Wed, 5 May 2010 08:05:01 +0000 (+0200) Subject: stop Bacula aborting the job when one of the writers reports a problem X-Git-Tag: Release-5.2.1~1368 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=870a132a2827e55c92537a2aacaeebc283217bbc;p=bacula%2Fbacula stop Bacula aborting the job when one of the writers reports a problem --- diff --git a/bacula/src/filed/job.c b/bacula/src/filed/job.c index 8cac931472..91ead1f317 100644 --- a/bacula/src/filed/job.c +++ b/bacula/src/filed/job.c @@ -1810,8 +1810,8 @@ static int backup_cmd(JCR *jcr) /* inform user about writer states */ for (i=0; i < (int)g_pVSSClient->GetWriterCount(); i++) if (g_pVSSClient->GetWriterState(i) < 1) { - Jmsg(jcr, M_WARNING, 0, _("VSS Writer (PrepareForBackup): %s\n"), g_pVSSClient->GetWriterInfo(i)); - jcr->JobErrors++; + Jmsg(jcr, M_INFO, 0, _("VSS Writer (PrepareForBackup): %s\n"), g_pVSSClient->GetWriterInfo(i)); + //jcr->JobErrors++; } } } else { @@ -2087,14 +2087,9 @@ static int restore_cmd(JCR *jcr) /* inform user about writer states */ int i; for (i=0; i < (int)g_pVSSClient->GetWriterCount(); i++) { - int msg_type = M_INFO; if (g_pVSSClient->GetWriterState(i) < 1) { - msg_type = M_WARNING; - jcr->JobErrors++; - } - if (g_pVSSClient->GetWriterState(i) < 1) { - Jmsg(jcr, M_WARNING, 0, _("VSS Writer (PreRestore): %s\n"), g_pVSSClient->GetWriterInfo(i)); - jcr->JobErrors++; + Jmsg(jcr, M_INFO, 0, _("VSS Writer (PreRestore): %s\n"), g_pVSSClient->GetWriterInfo(i)); + //jcr->JobErrors++; } } } else { @@ -2142,8 +2137,8 @@ static int restore_cmd(JCR *jcr) for (int i=0; i<(int)g_pVSSClient->GetWriterCount(); i++) { int msg_type = M_INFO; if (g_pVSSClient->GetWriterState(i) < 1) { - msg_type = M_WARNING; - jcr->JobErrors++; + //msg_type = M_WARNING; + //jcr->JobErrors++; } Jmsg(jcr, msg_type, 0, _("VSS Writer (RestoreComplete): %s\n"), g_pVSSClient->GetWriterInfo(i)); }