]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix slight error in autoprune -- should fix bug #2151
authorKern Sibbald <kern@sibbald.com>
Thu, 31 Dec 2015 10:39:15 +0000 (11:39 +0100)
committerKern Sibbald <kern@sibbald.com>
Thu, 31 Dec 2015 10:39:15 +0000 (11:39 +0100)
bacula/src/dird/autoprune.c

index 018a5bfb22be84e5daff7d8151ddeff330a92812..46416f52293ce9b5230061466cf510ffa07eba8b 100644 (file)
@@ -200,11 +200,6 @@ void prune_volumes(JCR *jcr, bool InChanger, MEDIA_DBR *mr,
             continue;
          }
 
-         if (has_volume_expired(jcr, &lmr)) {
-            Dmsg1(100, "Vol=%s has expired\n", lmr.VolumeName);
-            continue;                     /* Volume not usable */
-         }
-
          /*
           * If purged and not moved to another Pool,
           *   then we stop pruning and take this volume.