From 052d5840c614dff7eb9e469f05dff4dc04f941f5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Milo=C5=A1=20Mula=C4=8D?= Date: Mon, 3 Mar 2008 14:15:47 +0000 Subject: [PATCH] use edg_wll_LoadIntState before edg_wll_intJobStatus - should work with embrios too --- org.glite.lb.server/src/bkindex.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/org.glite.lb.server/src/bkindex.c b/org.glite.lb.server/src/bkindex.c index 34fc1dc..578900f 100644 --- a/org.glite.lb.server/src/bkindex.c +++ b/org.glite.lb.server/src/bkindex.c @@ -370,9 +370,15 @@ static edg_wll_ErrorCode edg_wll_RefreshIColumns(edg_wll_Context ctx, void *job_ stat = NULL; if (!edg_wlc_JobIdParse(res[4], &jobid)) { if ((stat = malloc(sizeof(intJobStat))) != NULL) { - if (edg_wll_intJobStatus(ctx, jobid, 0, stat, 1)) { + if (!edg_wll_LoadIntState(ctx, jobid, 0 /* DONT_LOCK */, -1 /*all events*/, &stat)) { + destroy_intJobStat_extension(stat); free(stat); stat = NULL; + } else { + if (edg_wll_intJobStatus(ctx, jobid, 0, stat, 1)) { + free(stat); + stat = NULL; + } } } edg_wlc_JobIdFree(jobid); -- 1.8.2.3