proper jobId allocation
authorJan Pospíšil <honik@ntc.zcu.cz>
Tue, 21 Mar 2006 13:44:25 +0000 (13:44 +0000)
committerJan Pospíšil <honik@ntc.zcu.cz>
Tue, 21 Mar 2006 13:44:25 +0000 (13:44 +0000)
org.glite.lb.server/src/lb_plugin.c

index f6001af..d5925f7 100644 (file)
@@ -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;