// edit_utime(now-period, ed1, sizeof(ed1));
// Jmsg(ua->jcr, M_INFO, 0, _("Begin pruning Jobs older than %s secs.\n"), ed1);
- Jmsg(ua->jcr, M_INFO, 0, _("Begin pruning Jobs.\n"));
+ Jmsg(ua->jcr, M_INFO, 0, _("Begin pruning Files.\n"));
/* Select Jobs -- for counting */
Mmsg(query,
"SELECT COUNT(1) FROM Job %s WHERE PurgedFiles=0 %s",
static bool create_temp_tables(UAContext *ua)
{
/* Create temp tables and indicies */
- if (!db_sql_query(ua->db, create_deltabs[db_type], NULL, (void *)NULL)) {
+ if (!db_sql_query(ua->db, create_deltabs[db_get_type_index(ua->db)], NULL, (void *)NULL)) {
ua->error_msg("%s", db_strerror(ua->db));
Dmsg0(050, "create DelTables table failed\n");
return false;
jr.ClientId = elt->ClientId; /* should be always the same */
jr.FileSetId = elt->FileSetId;
db_accurate_get_jobids(ua->jcr, ua->db, &jr, &tempids);
- jobids.cat(tempids);
+ jobids.add(tempids);
}
/* Discard latest Verify level=InitCatalog job