src/stored/vol_mgr.c
void remove_read_volume(JCR *jcr, const char *VolumeName)
{
   VOLRES vol, *fvol;
   lock_read_volumes();
   vol.vol_name = bstrdup(VolumeName);
   vol.set_jobid(jcr->JobId);
   fvol = (VOLRES *)read_vol_list->binary_search(&vol, read_compare);
   free(vol.vol_name);
   if (fvol) {
      Dmsg3(dbglvl, "remove_read_vol=%s JobId=%d found=%d\n", VolumeName, jcr->JobId, fvol!=NULL);
   }
   if (fvol) {
      read_vol_list->remove(fvol);
      free_vol_item(fvol);
   }
   unlock_read_volumes();
// pthread_cond_broadcast(&wait_next_vol);
}
/*
 * Remove a given volume name from the read list.
 */
Remove a given volume name from the read list.
Remove a given volume name from the read list .
void remove_read_volume(JCR *jcr, const char *VolumeName)
{
   VOLRES vol, *fvol;
   lock_read_volumes();
   vol.vol_name = bstrdup(VolumeName);
   vol.set_jobid(jcr->JobId);
   fvol = (VOLRES *)read_vol_list->binary_search(&vol, read_compare);
   free(vol.vol_name);
   if (fvol) {
      Dmsg3(dbglvl, "remove_read_vol=%s JobId=%d found=%d\n", VolumeName, jcr->JobId, fvol!=NULL);
   }
   if (fvol) {
      read_vol_list->remove(fvol);
      free_vol_item(fvol);
   }
   unlock_read_volumes();
}
void remove_read_volume ( JCR * jcr , const char * VolumeName ) { VOLRES vol , * fvol ; lock_read_volumes ( ) ; vol . vol_name = bstrdup ( VolumeName ) ; vol . set_jobid ( jcr -> JobId ) ; fvol = ( VOLRES * ) read_vol_list -> binary_search ( & vol , read_compare ) ; free ( vol . vol_name ) ; if ( fvol ) { Dmsg3 ( dbglvl , " \n " , VolumeName , jcr -> JobId , fvol != NULL ) ; } if ( fvol ) { read_vol_list -> remove ( fvol ) ; free_vol_item ( fvol ) ; } unlock_read_volumes ( ) ; }
Remove a given volume name from the read list.
Remove a given volume name from the read list .
// pthread_cond_broadcast(&wait_next_vol);