]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix orphanned jobs (deadlock) while pruning.
authorKern Sibbald <kern@sibbald.com>
Sun, 2 Nov 2008 13:39:44 +0000 (13:39 +0000)
committerKern Sibbald <kern@sibbald.com>
Sun, 2 Nov 2008 13:39:44 +0000 (13:39 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7965 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/dird/job.c
bacula/src/dird/ua_prune.c
bacula/technotes-2.5

index dba894a8af8d92fe9748f712aeefacf6990e977c..f7f7810c26ab037c2393e6231fd772a8588e398b 100644 (file)
@@ -696,6 +696,7 @@ bool allow_duplicate_job(JCR *jcr)
             }
          }
       }
+      endeach_jcr(djcr);
    }
    return true;   
 }
index 2621d3f7ea3272a9c2c491fc56468c56eb455b2e..e1ffb7937f6e55ca0c6d107dfeabdbe3fe31fb90 100644 (file)
@@ -508,6 +508,7 @@ int get_prune_list_for_volume(UAContext *ua, MEDIA_DBR *mr, del_ctx *del)
             break;
          }
       }
+      endeach_jcr(jcr);
       if (skip) {
          continue;
       }
index 3dffb4fccfe3974034e14ce544e40915fbc37b48..c74a170d9d33ebf359af7d00af745dfedd39873d 100644 (file)
@@ -11,6 +11,7 @@ mixed priorities
 
 General:
 02Nov08
+kes  Fix orphanned jobs (deadlock) while pruning.
 kes  Use jcr stored in bsock rather than searching in getmsg.c.
      This results in about a 5% speed improvement with four
      concurrent jobs.