From 130f7e7d99e7f3c3ba6229935e709ad0f53cef2b Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Sat, 14 Jun 2008 08:29:53 +0000 Subject: [PATCH] ebl Fix bad patch for autoselect git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7136 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/stored/reserve.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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; -- 2.39.5