From: Kern Sibbald Date: Sun, 6 Jan 2008 02:30:57 +0000 (+0000) Subject: Remove released test X-Git-Tag: Release-7.0.0~5161 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6d321ec8bb877164e7360c4145ee964815799b8c;p=bacula%2Fbacula Remove released test git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6242 91ce42f0-d328-0410-95d8-f526ca767f89 --- 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);