kes Remove StorageId test when pruning and recycling (Eric's changes).
kes Remove old form of locking when getting volumes -- causes deadlock.
kes Change bat dirstat layoutWidget to dirstatlayoutWidget to make
the name unique and to eliminate compile time error.
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6997
91ce42f0-d328-0410-95d8-
f526ca767f89
* 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));
<bool>true</bool>
</property>
</widget>
- <widget class="QWidget" name="layoutWidget" >
+ <widget class="QWidget" name="dirstatlayoutWidget" >
<layout class="QVBoxLayout" >
<property name="spacing" >
<number>6</number>
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 {
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.
+kes Change bat dirstat layoutWidget to dirstatlayoutWidget to make
+ the name unique and to eliminate compile time error.
kes Add accurate.o to Win32 FD Makefile
19May08
kes Fix cats dll build on Win32 after db_update_job_end_record