db_list_ctx() { list = get_pool_memory(PM_FNAME); reset(); }
~db_list_ctx() { free_pool_memory(list); list = NULL; }
void reset() { *list = 0; count = 0;}
- void cat(const db_list_ctx &str) {
+ void add(const db_list_ctx &str) {
if (str.count > 0) {
if (*list) {
pm_strcat(list, ",");
count += str.count;
}
}
- void cat(const char *str) {
+ void add(const char *str) {
if (count > 0) {
pm_strcat(list, ",");
}
{
db_list_ctx *lctx = (db_list_ctx *)ctx;
if (num_fields == 1 && row[0]) {
- lctx->cat(row[0]);
+ lctx->add(row[0]);
}
return 0;
}
if (!db_accurate_get_jobids(ua->jcr, ua->db, &jr, &tempids)) {
return true;
}
- jobids.cat(tempids);
+ jobids.add(tempids);
}
ua->send_msg("%s\n", jobids.list);
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