]> git.sur5r.net Git - bacula/bacula/commitdiff
Tweak accurate_finish
authorKern Sibbald <kern@sibbald.com>
Tue, 22 Feb 2011 16:47:20 +0000 (17:47 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:43:27 +0000 (14:43 +0200)
bacula/src/filed/accurate.c

index 0c9ea3f3065ba30cc084420cd8f9db0092186f8f..57317bd372fdc2519f4974db8113d1f4699eaca8 100644 (file)
@@ -184,6 +184,10 @@ bool accurate_finish(JCR *jcr)
 {
    bool ret = true;
 
+   if (jcr->is_canceled() || jcr->is_incomplete()) {
+      accurate_free(jcr);
+      return ret;
+   }
    if (jcr->accurate) {
       if (jcr->is_JobLevel(L_FULL)) {
          if (!jcr->incomplete) {