prune_list.JobId = (JobId_t *)malloc(sizeof(JobId_t) * prune_list.max_ids);
ua = new_ua_context(jcr);
-
db_lock(jcr->db);
/* Edit PoolId */
goto bail_out;
}
- Dmsg1(100, "num_ids=%d\n", ids.num_ids);
+ Dmsg1(100, "Volume prune num_ids=%d\n", ids.num_ids);
/* Visit each Volume and Prune it until we find one that is purged */
for (i=0; i<ids.num_ids; i++) {
prune_list.num_ids = 0; /* reset count */
}
if (!is_volume_purged(ua, &lmr)) {
- Dmsg1(100, "Vol=%s not pruned\n", lmr.VolumeName);
+ Dmsg1(050, "Vol=%s not pruned\n", lmr.VolumeName);
continue;
}
+ Dmsg1(050, "Vol=%s is purged\n", lmr.VolumeName);
/*
* Since we are also pruning the Scratch pool, continue
memcpy(mr, &lmr, sizeof(lmr));
break; /* got a volume */
}
- } else {
- Dmsg2(100, "Nothing pruned MediaId=%d Volume=%s\n", (int)lmr.MediaId, lmr.VolumeName);
}
}