]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl Remove extra db_lock() in get_prune_list_for_volume()
authorEric Bollengier <eric@eb.homelinux.org>
Tue, 2 Dec 2008 18:49:00 +0000 (18:49 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Tue, 2 Dec 2008 18:49:00 +0000 (18:49 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/branches/Branch-2.4@8105 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/dird/ua_prune.c
bacula/technotes-2.4

index 3d91cc2329d0ca03d73b7dbfc69be1ab1b45818a..a312d2188d50830d041db91cf06c0699b050dd08 100644 (file)
@@ -435,8 +435,6 @@ int get_prune_list_for_volume(UAContext *ua, MEDIA_DBR *mr, del_ctx *del)
       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 @@ int get_prune_list_for_volume(UAContext *ua, MEDIA_DBR *mr, del_ctx *del)
    }
 
 bail_out:
-   db_unlock(ua->db);
    return count;
 }
index fe4d8fcece22c407625815b3f4980fd2b4ee9124..8f4fa325f4cabb1dc2899f3e0b151b25076782f9 100644 (file)
@@ -2,6 +2,7 @@
 
 General:
 02Dec08
+ebl  Remove extra db_lock() in get_prune_list_for_volume()
 ebl  Apply 2.4.3-prune-deadlock.patch that fixes a problem when
      using Catalog as message backend.
 20Nov08