src/dird/autoprune.c
void do_autoprune(JCR *jcr)
{
   UAContext *ua;
   CLIENT *client;
   POOL *pool;
   bool pruned;

   if (!jcr->client) {                /* temp -- remove me */
      return;
   }

   ua = new_ua_context(jcr);
   client = jcr->client;
   pool = jcr->pool;

   if (jcr->job->PruneJobs || jcr->client->AutoPrune) {
      prune_jobs(ua, client, pool, jcr->getJobType());
      pruned = true;
   } else {
      pruned = false;
   }

   if (jcr->job->PruneFiles || jcr->client->AutoPrune) {
      prune_files(ua, client, pool);
      pruned = true;
   }
   if (pruned) {
      Jmsg(jcr, M_INFO, 0, _("End auto prune.\n\n"));
   }
   free_ua_context(ua);
   return;
}
/*
 * Auto Prune Jobs and Files. This is called at the end of every
 *   Job.  We do not prune volumes here.
 */
Auto Prune Jobs and Files. This is called at the end of every
Job.  We do not prune volumes here.
Auto Prune Jobs and Files . This is called at the end of every Job . We do not prune volumes here .
void do_autoprune(JCR *jcr)
{
   UAContext *ua;
   CLIENT *client;
   POOL *pool;
   bool pruned;
   if (!jcr->client) {                
      return;
   }
   ua = new_ua_context(jcr);
   client = jcr->client;
   pool = jcr->pool;
   if (jcr->job->PruneJobs || jcr->client->AutoPrune) {
      prune_jobs(ua, client, pool, jcr->getJobType());
      pruned = true;
   } else {
      pruned = false;
   }
   if (jcr->job->PruneFiles || jcr->client->AutoPrune) {
      prune_files(ua, client, pool);
      pruned = true;
   }
   if (pruned) {
      Jmsg(jcr, M_INFO, 0, _("End auto prune.\n\n"));
   }
   free_ua_context(ua);
   return;
}
void do_autoprune ( JCR * jcr ) { UAContext * ua ; CLIENT * client ; POOL * pool ; bool pruned ; if ( ! jcr -> client ) { return ; } ua = new_ua_context ( jcr ) ; client = jcr -> client ; pool = jcr -> pool ; if ( jcr -> job -> PruneJobs || jcr -> client -> AutoPrune ) { prune_jobs ( ua , client , pool , jcr -> getJobType ( ) ) ; pruned = true ; } else { pruned = false ; } if ( jcr -> job -> PruneFiles || jcr -> client -> AutoPrune ) { prune_files ( ua , client , pool ) ; pruned = true ; } if ( pruned ) { Jmsg ( jcr , M_INFO , 0 , _ ( " \n \n " ) ) ; } free_ua_context ( ua ) ; return ; }
Auto Prune Jobs and Files.
Auto Prune Jobs and Files .
/* temp -- remove me */