From 591942ecdcc954143711bb4b7981be18d6a47e95 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sun, 6 Jan 2008 02:30:57 +0000 Subject: [PATCH] Remove released test git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6242 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/stored/reserve.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bacula/src/stored/reserve.c b/bacula/src/stored/reserve.c index 59084d4bc3..0c15236e13 100644 --- a/bacula/src/stored/reserve.c +++ b/bacula/src/stored/reserve.c @@ -337,10 +337,12 @@ VOLRES *reserve_volume(DCR *dcr, const char *VolumeName) goto get_out; /* Volume already on this device */ } else { /* Don't release a volume if it is in use */ +#ifdef xxx if (!vol->released) { vol = NULL; /* vol in use */ goto get_out; } +#endif Dmsg2(dbglvl, "reserve_vol free vol=%s at %p\n", vol->vol_name, vol->vol_name); unload_autochanger(dcr, -1); /* unload the volume */ free_volume(dev); -- 2.39.5