From: František Dvořák Date: Fri, 13 Jul 2012 12:32:43 +0000 (+0000) Subject: Fix a warning and logging the affected jobid on bad branch (SB #92129). X-Git-Tag: glite-jobid-api-c_R_2_1_2_3~9 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=8d1f0d869c8abff28440898ff7cbfb045237d77c;p=jra1mw.git Fix a warning and logging the affected jobid on bad branch (SB #92129). --- diff --git a/org.glite.lb.state-machine/src/process_event.c b/org.glite.lb.state-machine/src/process_event.c index 357ebd0..10b15d6 100644 --- a/org.glite.lb.state-machine/src/process_event.c +++ b/org.glite.lb.state-machine/src/process_event.c @@ -609,9 +609,13 @@ static int processEvent_glite(intJobStat *js, edg_wll_Event *e, int ev_seq, int /* consistence check -- should not receive two contradicting ReallyRunning's within single deep resub cycle */ if (fine_res == RET_BADBRANCH) { + char *jobid_s; + + jobid_s = glite_jobid_unparse(e->any.jobId); syslog(LOG_ERR,"ReallyRunning on bad branch %s (%s)", e->any.source == EDG_WLL_SOURCE_LOG_MONITOR ? e->reallyRunning.wn_seq : e->any.seqcode, - e->any.jobId); + jobid_s); + free(jobid_s); break; } /* select the branch unless TOOOLD, i.e. before deep resubmission */