From: Kern Sibbald Date: Mon, 10 Oct 2011 09:09:52 +0000 (+0200) Subject: First attempt to fix vtape-autoselect-test bug X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=827c34b87197fdb2632748a3653ca3ffd244cf2e;p=bacula%2Fbacula First attempt to fix vtape-autoselect-test bug --- diff --git a/bacula/src/stored/reserve.c b/bacula/src/stored/reserve.c index 0176e75c49..50344de8b0 100644 --- a/bacula/src/stored/reserve.c +++ b/bacula/src/stored/reserve.c @@ -453,7 +453,7 @@ bool find_suitable_device_for_job(JCR *jcr, RCTX &rctx) if (vol->dev->is_autochanger()) { Dmsg1(dbglvl, "vol=%s is in changer\n", vol->vol_name); - if (!is_vol_in_autochanger(rctx, vol)) { + if (!is_vol_in_autochanger(rctx, vol) || !vol->dev->autoselect) { continue; } } else if (strcmp(device_name, vol->dev->device->hdr.name) != 0) {