From 2c6680d8ca340d7dce9e9d21a94385f42369bda0 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Wed, 25 Jan 2012 09:43:53 +0100 Subject: [PATCH] Disable usage of JS_Warning waiting for a more complete implementation --- bacula/src/dird/backup.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bacula/src/dird/backup.c b/bacula/src/dird/backup.c index c2321aacf8..8f0f7ec4e5 100644 --- a/bacula/src/dird/backup.c +++ b/bacula/src/dird/backup.c @@ -607,10 +607,17 @@ void backup_cleanup(JCR *jcr, int TermCode) memset(&mr, 0, sizeof(mr)); memset(&cr, 0, sizeof(cr)); +#ifdef xxxx + /* The current implementation of the JS_Warning status is not + * completed. SQL part looks to be ok, but the code is using + * JS_Terminated almost everywhere instead of (JS_Terminated || JS_Warning) + * as we do with is_canceled() + */ if (jcr->getJobStatus() == JS_Terminated && (jcr->JobErrors || jcr->SDErrors || jcr->JobWarnings)) { TermCode = JS_Warnings; } +#endif update_job_end(jcr, TermCode); -- 2.39.5