Changeset 16


Ignore:
Timestamp:
04/21/11 18:28:03 (13 years ago)
Author:
mmamonski
Message:

painfull copy/paste bug

Location:
trunk/pbs_drmaa
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/pbs_drmaa/job.c

    r15 r16  
    193193                conn_lock = fsd_mutex_lock( &self->session->drm_connection_mutex ); 
    194194retry: 
     195 
    195196#ifdef PBS_PROFESSIONAL 
    196197                status = pbs_statjob( session->pbs_conn, self->job_id, NULL, NULL ); 
  • trunk/pbs_drmaa/submit.c

    r12 r16  
    179179                                self->destination_queue, NULL ); 
    180180 
    181                 fsd_log_info(("pbs_submit() =%s", job_id)); 
     181                fsd_log_info(("pbs_submit(%s, %s) =%s", self->script_filename, self->destination_queue, job_id)); 
    182182 
    183183                if( job_id == NULL ) 
     
    590590                const char *native_specification ) 
    591591{ 
     592        fsd_log_enter(( "({native_specification=%s})", native_specification )); 
     593 
    592594        if( native_specification == NULL ) 
    593595                native_specification = self->job_template->get_attr( 
     
    614616                                                        arg, native_specification); 
    615617 
    616                                                 case 'h' : 
    617                                                         pbs_attr->set_attr( pbs_attr, "Hold_Types" , arg ); 
    618                                                         break; 
    619  
    620618                                        opt = arg[1]; 
    621619 
     
    671669                                                case 'q' : 
    672670                                                        self->destination_queue = fsd_strdup( arg ); 
     671                                                        fsd_log_debug(("self->destination_queue = %s", self->destination_queue)); 
    673672                                                        break; 
    674673                                                case 'r' : 
  • trunk/pbs_drmaa/util.c

    r13 r16  
    8484 
    8585        _pbs_errno = pbs_errno; 
    86         /* 
    87          * Gathering error messages differ between PBS forks. 
    88          * - OpenPBS - ... 
    89          * - Torque - pbse_to_txt takes PBS error code (stored in pbs_errno) 
    90          *  and returns corresponding error message. 
    91          * - PBS Pro - stores errno of last operation inside pbs_errno variable; 
    92          *  pbse_to_txt always return NULL. 
    93          * All of them define pbs_geterrmsg which returns last error message 
    94          * for given connection. 
    95          */ 
    96         /* XXX: PBSPro has some link problems with pbse_to_txt function */ 
    97 #if PBS_PROFESSIONAL_NO_LOG 
     86 
     87#ifndef PBS_PROFESSIONAL_NO_LOG 
    9888        message = pbse_to_txt( pbs_errno ); 
    9989#else 
    10090        message = "pbs error"; 
    10191#endif 
    102  
    10392 
    10493        fsd_errno = pbsdrmaa_map_pbs_errno( _pbs_errno ); 
Note: See TracChangeset for help on using the changeset viewer.