From: Eric Bollengier Date: Sat, 14 Jun 2008 08:29:53 +0000 (+0000) Subject: ebl Fix bad patch for autoselect X-Git-Tag: Release-7.0.0~4465 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=130f7e7d99e7f3c3ba6229935e709ad0f53cef2b;p=bacula%2Fbacula ebl Fix bad patch for autoselect git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7136 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/stored/reserve.c b/bacula/src/stored/reserve.c index 18b0787f21..47a6759dfa 100644 --- a/bacula/src/stored/reserve.c +++ b/bacula/src/stored/reserve.c @@ -1088,16 +1088,16 @@ int search_res_for_device(RCTX &rctx) /* Look through Autochangers first */ foreach_res(changer, R_AUTOCHANGER) { Dmsg1(dbglvl, "Try match changer res=%s\n", changer->hdr.name); - if (!rctx.device->autoselect) { - Dmsg1(100, "Device %s not autoselect skipped.\n", - rctx.device->hdr.name); - continue; /* device is not available */ - } /* Find resource, and make sure we were able to open it */ if (strcmp(rctx.device_name, changer->hdr.name) == 0) { /* Try each device in this AutoChanger */ foreach_alist(rctx.device, changer->device) { Dmsg1(dbglvl, "Try changer device %s\n", rctx.device->hdr.name); + if (!rctx.device->autoselect) { + Dmsg1(100, "Device %s not autoselect skipped.\n", + rctx.device->hdr.name); + continue; /* device is not available */ + } stat = reserve_device(rctx); if (stat != 1) { /* try another device */ continue;