src/dird/dird.c
static void reload_job_end_cb(JCR *jcr, void *ctx)
{
   int reload_id = (int)((intptr_t)ctx);
   Dmsg3(100, "reload job_end JobId=%d table=%d cnt=%d\n", jcr->JobId,
      reload_id, reload_table[reload_id].job_count);
   lock_jobs();
   LockRes();
   if (--reload_table[reload_id].job_count <= 0) {
      free_saved_resources(reload_id);
   }
   UnlockRes();
   unlock_jobs();
}
/*
 * Called here at the end of every job that was
 * hooked decrementing the active job_count. When
 * it goes to zero, no one is using the associated
 * resource table, so free it.
 */
Called here at the end of every job that was
hooked decrementing the active job_count. When
it goes to zero, no one is using the associated
resource table, so free it.
Called here at the end of every job that was hooked decrementing the active job_count . When it goes to zero no one is using the associated resource table so free it .
static void reload_job_end_cb(JCR *jcr, void *ctx)
{
   int reload_id = (int)((intptr_t)ctx);
   Dmsg3(100, "reload job_end JobId=%d table=%d cnt=%d\n", jcr->JobId,
      reload_id, reload_table[reload_id].job_count);
   lock_jobs();
   LockRes();
   if (--reload_table[reload_id].job_count <= 0) {
      free_saved_resources(reload_id);
   }
   UnlockRes();
   unlock_jobs();
}
static void reload_job_end_cb ( JCR * jcr , void * ctx ) { int reload_id = ( int ) ( ( intptr_t ) ctx ) ; Dmsg3 ( 100 , " \n " , jcr -> JobId , reload_id , reload_table [ reload_id ] . job_count ) ; lock_jobs ( ) ; LockRes ( ) ; if ( -- reload_table [ reload_id ] . job_count <= 0 ) { free_saved_resources ( reload_id ) ; } UnlockRes ( ) ; unlock_jobs ( ) ; }
Called here at the end of every job that was
 hooked decrementing the active job_count.
Called here at the end of every job that was hooked decrementing the active job_count .