From: Jiří Filipovič Date: Tue, 19 Jan 2010 11:37:40 +0000 (+0000) Subject: fixed cream states processing X-Git-Tag: glite-lb-harvester_R_1_0_3_1~19 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=17e7bf9cdbc1572a769cf0ece7d04121a20ef8bf;p=jra1mw.git fixed cream states processing --- 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;