From: Miloš Mulač Date: Thu, 30 Nov 2006 10:37:53 +0000 (+0000) Subject: use string reprezentation of state in collectionState.state X-Git-Tag: glite-lb-server_generic2_start~14 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=1b461e9ee1408967977b403f431d1ac16b73e517;p=jra1mw.git use string reprezentation of state in collectionState.state - easier debugging & human readability --- diff --git a/org.glite.lb.server/src/jobstat.c b/org.glite.lb.server/src/jobstat.c index 4a158ad..a474d9f 100644 --- a/org.glite.lb.server/src/jobstat.c +++ b/org.glite.lb.server/src/jobstat.c @@ -730,7 +730,7 @@ static int log_collectionState_event(edg_wll_Context ctx, edg_wll_JobStatCode st event->any.source = EDG_WLL_SOURCE_LB_SERVER; - event->collectionState.state = state; + event->collectionState.state = edg_wll_StatToString(state); event->collectionState.done_code = done_code; event->collectionState.histogram = hist_to_string(pis->pub.children_hist); edg_wlc_JobIdDup(cis->pub.jobId, &(event->collectionState.child)); diff --git a/org.glite.lb.server/src/process_event.c b/org.glite.lb.server/src/process_event.c index 4aa33ac..8e76b4c 100644 --- a/org.glite.lb.server/src/process_event.c +++ b/org.glite.lb.server/src/process_event.c @@ -811,7 +811,7 @@ int processEvent(intJobStat *js, edg_wll_Event *e, int ev_seq, int strict, char /* ignore, only for event log */ break; case EDG_WLL_EVENT_COLLECTIONSTATE: - new_state = e->collectionState.state; + new_state = edg_wll_StringToStat(e->collectionState.state); if (USABLE(res, strict)) { js->pub.state = new_state; if (new_state == EDG_WLL_JOB_DONE) diff --git a/org.glite.lb/project/events.T b/org.glite.lb/project/events.T index 77b8fdb..55148e4 100644 --- a/org.glite.lb/project/events.T +++ b/org.glite.lb/project/events.T @@ -202,7 +202,7 @@ string reason Reason for the resume. @type CollectionState State of the collection. - int state New collection state. + string state New collection state. _optional_ int done_code In case of (state == Done) contains done code _null_ -1