kes Apply big backport of current SVN SD code that corrects a number
of race conditions. This is a first step in fixing bug #1018.
29Dec07
-ebl Fixes bug #1028 where "Selection Type" option was not usable
+ebl Fixes bug #1028 where 'Selection Type' option was not usable
with JobDefs.
program.
kes Move patches into patches directory.
11Sep07
-ebl Fix bug #946 about "bacula-dir -t" which doesn't works
+ebl Fix bug #946 about 'bacula-dir -t' which doesn't works
as expected.
09Sep07
-ebl Using "m" in bconsole will show messages like before,
+ebl Using 'm' in bconsole will show messages like before,
and not memory usage.
Release Version 2.2.3
by skipping |. Fixes bug #936.
- Implement patch supplied by Landon to fix bug #944 where using
TLS with bconsole uses 99+% of the CPU.
-- Fix bug #946 about "bacula-dir -t" which doesn't works
+- Fix bug #946 about 'bacula-dir -t' which doesn't works
as expected.
-- Using "m" in bconsole will show messages as in prior versions
+- Using 'm' in bconsole will show messages as in prior versions
and not memory usage.
- Note, you need GTK >= 2.10 to be able to link the Tray Monitor
* RecyclePoolId is the current pool or the scratch pool
*/
const char *select = "SELECT DISTINCT MediaId,LastWritten FROM Media WHERE "
- "(PoolId=%s OR RecyclePoolId IN (%s)) AND MediaType='%s' %s"
+ "(PoolId=%s OR RecyclePoolId IN (%s)) AND MediaType='%s' "
"ORDER BY LastWritten ASC,MediaId";
- if (InChanger) {
- char changer[100];
- /* Ensure it is in this autochanger */
- bsnprintf(changer, sizeof(changer), "AND InChanger=1 AND StorageId=%s ",
- edit_int64(mr->StorageId, ed3));
- Mmsg(query, select, ed1, ed2, mr->MediaType, changer);
- } else {
- Mmsg(query, select, ed1, ed2, mr->MediaType, "");
- }
+ Mmsg(query, select, ed1, ed2, mr->MediaType);
Dmsg1(050, "query=%s\n", query.c_str());
if (!db_get_query_dbids(ua->jcr, ua->db, query, ids)) {
const char *select =
"SELECT MediaId,LastWritten FROM Media "
"WHERE PoolId=%s AND Recycle=1 AND VolStatus='Purged' "
- "AND Enabled=1 AND MediaType='%s' %s"
+ "AND Enabled=1 AND MediaType='%s' "
"ORDER BY LastWritten ASC,MediaId LIMIT 1";
Dmsg0(100, "Enter recycle_oldest_purged_volume\n");
oldest.MediaId = 0;
- if (InChanger) {
- char changer[100];
- 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, "");
- }
+ Mmsg(query, select, edit_int64(mr->PoolId, ed1), mr->MediaType);
if (!db_sql_query(jcr->db, query, oldest_handler, (void *)&oldest)) {
Jmsg(jcr, M_ERROR, 0, "%s", db_strerror(jcr->db));
Jmsg(jcr, M_INFO, 0, "%s", dev->errmsg);
return false;
}
- dev->dlock();
got_vol = dir_find_next_appendable_volume(dcr); /* get suggested volume */
- dev->dunlock();
if (got_vol) {
return true;
} else {
#undef VERSION
#define VERSION "2.2.10-b3"
-#define BDATE "12 May 2008"
-#define LSMDATE "12May08"
+#define BDATE "20 May 2008"
+#define LSMDATE "20May08"
#define PROG_COPYRIGHT "Copyright (C) %d-2008 Free Software Foundation Europe e.V.\n"
#define BYEAR "2008" /* year for copyright messages in progs */
Technical notes on version 2.2
General:
+
+20May08
+kes Remove double quotes from ChangeLog and ReleaseNotes
+kes Remove StorageId test when pruning and recycling (Eric's changes).
+kes Remove old form of locking when getting volumes -- causes deadlock.
17May08
kes Fix buffer overruns detected by Coverity.