]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/dird/recycle.c
- Back port changes to 1.38.5
[bacula/bacula] / bacula / src / dird / recycle.c
index 11241990ff5d3241188ac78606e90a0f1361478c..dddff5be556f348bc6e6d3ef3e1983a7aa12bf03 100644 (file)
@@ -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",
-         edit_uint64(mr->StorageId, ed1));
+      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, "");