From 219c3361ea84d506c46876a067e1292db93af9fb Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Wed, 8 Aug 2007 14:22:00 +0000 Subject: [PATCH] kes Apply patch from Allan Black that corrects a typo in the Recycle status check in db_find_next_volume(). This will probably fix a number of annoying problems with multiple Recycled volumes. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5305 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/cats/sql_find.c | 2 +- bacula/technotes-2.1 | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/bacula/src/cats/sql_find.c b/bacula/src/cats/sql_find.c index 04e2b45e73..5894a60325 100644 --- a/bacula/src/cats/sql_find.c +++ b/bacula/src/cats/sql_find.c @@ -300,7 +300,7 @@ db_find_next_volume(JCR *jcr, B_DB *mdb, int item, bool InChanger, MEDIA_DBR *mr } else { changer[0] = 0; } - if (strcmp(mr->VolStatus, "Recycled") == 0 || + if (strcmp(mr->VolStatus, "Recycle") == 0 || strcmp(mr->VolStatus, "Purged") == 0) { order = "ORDER BY LastWritten ASC,MediaId"; /* take oldest */ } else { diff --git a/bacula/technotes-2.1 b/bacula/technotes-2.1 index 9198c91d84..a1f7d0638c 100644 --- a/bacula/technotes-2.1 +++ b/bacula/technotes-2.1 @@ -2,6 +2,10 @@ General: 08Aug07 +kes Apply patch from Allan Black that + corrects a typo in the Recycle status check in db_find_next_volume(). + This will probably fix a number of annoying problems with multiple + Recycled volumes. kes Modify most of dird/msgchan.c to use bsock class calls rather than bnet calls -- no functionality change. 07Aug07 -- 2.39.5