From: Miloš Mulač Date: Mon, 3 Mar 2008 14:15:47 +0000 (+0000) Subject: use edg_wll_LoadIntState before edg_wll_intJobStatus X-Git-Tag: merge_transactions_src~13 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=052d5840c614dff7eb9e469f05dff4dc04f941f5;p=jra1mw.git use edg_wll_LoadIntState before edg_wll_intJobStatus - should work with embrios too --- 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);