From: Jan Pospíšil Date: Mon, 20 Mar 2006 15:15:49 +0000 (+0000) Subject: get jobId from the reg event X-Git-Tag: glite-wms-utils-exception_R_3_1_0~9 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=84b2c0ad3c7fc3fdf2500d7c972ff3780bf4d964;p=jra1mw.git get jobId from the reg event --- diff --git a/org.glite.lb.server/src/lb_plugin.c b/org.glite.lb.server/src/lb_plugin.c index 9a2f2f4..f6001af 100644 --- a/org.glite.lb.server/src/lb_plugin.c +++ b/org.glite.lb.server/src/lb_plugin.c @@ -416,14 +416,19 @@ static int lb_status(edg_wll_Event **events, edg_wll_JobStat *status) { js = calloc(1, sizeof(intJobStat)); init_intJobStat(js); - + + /* TODO: + edg_wll_SortEvents(events); + */ + i = 0; while (events[i]) { - /* XXX: job owner not filled from events normally */ - if (events[i]->any.type == EDG_WLL_EVENT_REGJOB) + /* XXX: job owner and jobId not filled from events normally */ + if (events[i]->any.type == EDG_WLL_EVENT_REGJOB) { js->pub.owner = check_strdup(events[i]->any.user); - + js->pub.jobId = events[i]->any.jobId; + } if (processEvent(js, events[i], 0, be_strict, &errstring) == RET_FATAL) { goto err; }