X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Fdird%2Fautoprune.c;h=a80386cbfd75ae2d731cc67d8dc5e2d3cbfb078c;hb=083345c5d313edbab2a54aee159963e4acefa896;hp=1eaaeb10d4dce743a1a155d0ded60fca8149285e;hpb=bf3db76fc316d720bcb87ce78a6a7a5dcc86c781;p=bacula%2Fbacula diff --git a/bacula/src/dird/autoprune.c b/bacula/src/dird/autoprune.c index 1eaaeb10d4..a80386cbfd 100644 --- a/bacula/src/dird/autoprune.c +++ b/bacula/src/dird/autoprune.c @@ -204,13 +204,6 @@ bool prune_volumes(JCR *jcr, bool InChanger, MEDIA_DBR *mr) memcpy(mr, &lmr, sizeof(lmr)); break; /* got a volume */ } - /* - * We purged something but did not get a volume in the current pool. - * It must be a scratch volume, so try to get it. - */ - if (ok && get_scratch_volume(jcr, InChanger, mr)) { - break; /* got a volume */ - } ok = false; /* clear OK, in case we fall out */ } else { Dmsg2(050, "Nothing pruned MediaId=%d Volume=%s\n", (int)lmr.MediaId, lmr.VolumeName);