From b00b800b072d187af84745395daa58633759345d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Posp=C3=AD=C5=A1il?= Date: Tue, 21 Mar 2006 13:44:25 +0000 Subject: [PATCH] proper jobId allocation --- org.glite.lb.server/src/lb_plugin.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/org.glite.lb.server/src/lb_plugin.c b/org.glite.lb.server/src/lb_plugin.c index f6001af..d5925f7 100644 --- a/org.glite.lb.server/src/lb_plugin.c +++ b/org.glite.lb.server/src/lb_plugin.c @@ -427,7 +427,9 @@ static int lb_status(edg_wll_Event **events, edg_wll_JobStat *status) { /* 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 (edg_wlc_JobIdDup(events[i]->any.jobId,&js->pub.jobId)) { + goto err; + } } if (processEvent(js, events[i], 0, be_strict, &errstring) == RET_FATAL) { goto err; -- 1.8.2.3