]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl Update patch to remove an extra lock()
authorEric Bollengier <eric@eb.homelinux.org>
Tue, 2 Dec 2008 18:44:20 +0000 (18:44 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Tue, 2 Dec 2008 18:44:20 +0000 (18:44 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/branches/Branch-2.4@8104 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/patches/2.4.3-prune-deadlock.patch

index 1e26d374d17adba9fcbc0fc643d3276c9266eb0f..c563df86be1af2ba83e534daa9c6840867abf442 100644 (file)
@@ -33,3 +33,24 @@ Index: src/lib/jcr.c
     job_end_pop(jcr);                  /* pop and call hooked routines */
  
     Dmsg1(3400, "End job=%d\n", jcr->JobId);
+Index: src/dird/ua_prune.c
+===================================================================
+--- src/dird/ua_prune.c (rĂ©vision 8100)
++++ src/dird/ua_prune.c (copie de travail)
+@@ -435,8 +435,6 @@
+       return 0;                    /* cannot prune Archived volumes */
+    }
+
+-   db_lock(ua->db);
+-
+    /*
+     * Now add to the  list of JobIds for Jobs written to this Volume
+     */
+@@ -477,6 +475,5 @@
+    }
+
+ bail_out:
+-   db_unlock(ua->db);
+    return count;
+ }
+