X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Fdird%2Frecycle.c;h=f034fae717526289488cb2149ae3a1d2b990f910;hb=ee7264d0897b1720b53779062938a6abc404007b;hp=20d5b5db3dab261207e2a38fcbba74ac9a20d56a;hpb=4c569766ebee936f6bbfb766659fca0105898c9d;p=bacula%2Fbacula diff --git a/bacula/src/dird/recycle.c b/bacula/src/dird/recycle.c index 20d5b5db3d..f034fae717 100644 --- a/bacula/src/dird/recycle.c +++ b/bacula/src/dird/recycle.c @@ -9,7 +9,7 @@ */ /* - Copyright (C) 2002-2005 Kern Sibbald + Copyright (C) 2002-2006 Kern Sibbald This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -77,8 +77,8 @@ int recycle_oldest_purged_volume(JCR *jcr, bool InChanger, MEDIA_DBR *mr) oldest.MediaId = 0; if (InChanger) { char changer[100]; - bsnprintf(changer, sizeof(changer), "AND InChanger=1 AND StorageId=%s", - mr->StorageId); + bsnprintf(changer, sizeof(changer), "AND InChanger=1 AND StorageId=%s ", + edit_int64(mr->StorageId, ed1)); Mmsg(query, select, edit_int64(mr->PoolId, ed1), mr->MediaType, changer); } else { Mmsg(query, select, edit_int64(mr->PoolId, ed1), mr->MediaType, "");