From: Ulrich Leodolter Date: Sat, 12 Apr 2014 08:06:50 +0000 (+0200) Subject: Apply fix for bug 2049: wrong drive selected X-Git-Tag: Release-7.0.3~26 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=986735a2f24cc83f2d797ef818ee0fea50d9edb4;p=bacula%2Fbacula Apply fix for bug 2049: wrong drive selected --- diff --git a/bacula/src/stored/reserve.c b/bacula/src/stored/reserve.c index 5f696a37cf..30719a77b0 100644 --- a/bacula/src/stored/reserve.c +++ b/bacula/src/stored/reserve.c @@ -445,7 +445,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) || vol->dev->autoselect) { + if (!is_vol_in_autochanger(rctx, vol) || !vol->dev->autoselect) { continue; } } else if (strcmp(device_name, vol->dev->device->hdr.name) != 0) {