From 17e7bf9cdbc1572a769cf0ece7d04121a20ef8bf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ji=C5=99=C3=AD=20Filipovi=C4=8D?= Date: Tue, 19 Jan 2010 11:37:40 +0000 Subject: [PATCH] fixed cream states processing --- org.glite.lb.state-machine/src/process_event_cream.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/org.glite.lb.state-machine/src/process_event_cream.c b/org.glite.lb.state-machine/src/process_event_cream.c index cb718e8..ad85fc0 100644 --- a/org.glite.lb.state-machine/src/process_event_cream.c +++ b/org.glite.lb.state-machine/src/process_event_cream.c @@ -33,14 +33,6 @@ static int compare_timestamps(struct timeval a, struct timeval b) /* XXX lookup table */ static char *cream_states[EDG_WLL_NUMBER_OF_CREAM_STATES]; -static int stringToCreamStat(char *s) { - int i; - for (i=0; iCREAMStatus.result == EDG_WLL_CREAMSTATUS_DONE) { switch (js->pub.cream_state = stringToCreamStat(e->CREAMStatus.new_state)) @@ -208,11 +201,11 @@ int processEvent_Cream(intJobStat *js, edg_wll_Event *e, int ev_seq, int strict, js->pub.jw_status = EDG_WLL_STAT_PAYLOAD_RUNNING; break; case EDG_WLL_STAT_HELD: /* TODO */ break; - case EDG_WLL_STAT_DONEOK: + case EDG_WLL_STAT_DONE_OK: js->pub.state = EDG_WLL_JOB_DONE; js->pub.done_code = EDG_WLL_STAT_OK; break; - case EDG_WLL_STAT_DONEFAILED: + case EDG_WLL_STAT_DONE_FAILED: js->pub.state = EDG_WLL_JOB_DONE; js->pub.done_code = EDG_WLL_STAT_FAILED; break; -- 1.8.2.3