From 2edfcacbfbe7f2cc2f4a4323014d97d81bab85d3 Mon Sep 17 00:00:00 2001 From: James Harper Date: Wed, 5 May 2010 10:05:01 +0200 Subject: [PATCH] stop Bacula aborting the job when one of the writers reports a problem --- bacula/src/filed/job.c | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) 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)); } -- 2.39.5