]> git.sur5r.net Git - bacula/bacula/commitdiff
Disable usage of JS_Warning waiting for a more complete implementation
authorEric Bollengier <eric@baculasystems.com>
Wed, 25 Jan 2012 08:43:53 +0000 (09:43 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:50:30 +0000 (14:50 +0200)
bacula/src/dird/backup.c

index c2321aacf84a657d4cd7e0d0050cf6f2aa3b5147..8f0f7ec4e5f3de6cab4de8b996e7da81f22c6748 100644 (file)
@@ -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);