use string reprezentation of state in collectionState.state
authorMiloš Mulač <mulac@civ.zcu.cz>
Thu, 30 Nov 2006 10:37:53 +0000 (10:37 +0000)
committerMiloš Mulač <mulac@civ.zcu.cz>
Thu, 30 Nov 2006 10:37:53 +0000 (10:37 +0000)
- easier debugging & human readability

org.glite.lb.server/src/jobstat.c
org.glite.lb.server/src/process_event.c
org.glite.lb/project/events.T

index 4a158ad..a474d9f 100644 (file)
@@ -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));
index 4aa33ac..8e76b4c 100644 (file)
@@ -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)
index 77b8fdb..55148e4 100644 (file)
        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