src/stored/vol_mgr.c
static int read_compare(void *item1, void *item2)
{
   VOLRES *vol1 = (VOLRES *)item1;
   VOLRES *vol2 = (VOLRES *)item2;

   if (vol1->get_jobid() == vol2->get_jobid()) {
      return strcmp(vol1->vol_name, vol2->vol_name);
   }
   if (vol1->get_jobid() < vol2->get_jobid()) {
      return -1;
   }
   return 1;
}
/*
 * For read volumes the key is JobId, VolumeName.
 */
For read volumes the key is JobId, VolumeName.
For read volumes the key is JobId VolumeName .
static int read_compare(void *item1, void *item2)
{
   VOLRES *vol1 = (VOLRES *)item1;
   VOLRES *vol2 = (VOLRES *)item2;
   if (vol1->get_jobid() == vol2->get_jobid()) {
      return strcmp(vol1->vol_name, vol2->vol_name);
   }
   if (vol1->get_jobid() < vol2->get_jobid()) {
      return -1;
   }
   return 1;
}
static int read_compare ( void * item1 , void * item2 ) { VOLRES * vol1 = ( VOLRES * ) item1 ; VOLRES * vol2 = ( VOLRES * ) item2 ; if ( vol1 -> get_jobid ( ) == vol2 -> get_jobid ( ) ) { return strcmp ( vol1 -> vol_name , vol2 -> vol_name ) ; } if ( vol1 -> get_jobid ( ) < vol2 -> get_jobid ( ) ) { return -1 ; } return 1 ; }
For read volumes the key is JobId, VolumeName.
For read volumes the key is JobId VolumeName .