Found what I think is a (minor) bug in the find_next_volume code;
patch attached.
I had been wondering why tapes with 'Recycle' status seemed to be
used in reverse order to what I expected ....
Allan
*** sql_find.c.orig Mon Nov 27 10:03:06 2006
--- sql_find.c Wed Aug 8 13:29:11 2007
***************
*** 298,304 ****
} else {
changer[0] = 0;
}
! if (strcmp(mr->VolStatus, "Recycled") == 0 ||
strcmp(mr->VolStatus, "Purged") == 0) {
order = "ORDER BY LastWritten ASC,MediaId"; /* take oldest */
} else {
--- 298,304 ----
} else {
changer[0] = 0;
}
! if (strcmp(mr->VolStatus, "Recycle") == 0 ||
strcmp(mr->VolStatus, "Purged") == 0) {
order = "ORDER BY LastWritten ASC,MediaId"; /* take oldest */
} else {
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Bacula-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel