]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/dird/autoprune.c
kes Fix Verify InitCatalog. The attributes were not pointing to the
[bacula/bacula] / bacula / src / dird / autoprune.c
index 45cfcabf2c9272b6875dfa7d103aa90a89d9e79e..b745aac8db8ed81209c3a9e09c45547e8ba164c2 100644 (file)
@@ -145,12 +145,12 @@ bool prune_volumes(JCR *jcr, MEDIA_DBR *mr)
          if (count != 0) {
             purge_job_list_from_catalog(ua, del);
             del.num_ids = 0;             /* reset count */
-            ok = is_volume_purged(ua, &lmr);
-            if (ok) {
-               Dmsg2(050, "Vol=%s MediaId=%d purged.\n", lmr.VolumeName, (int)lmr.MediaId);
-               mr = &lmr;             /* struct copy */
-               break;
-            }
+         }
+         ok = is_volume_purged(ua, &lmr);
+         if (ok) {
+            Dmsg2(050, "Vol=%s MediaId=%d purged.\n", lmr.VolumeName, (int)lmr.MediaId);
+            mr = &lmr;             /* struct copy */
+            break;
          }
       }
    }