git://scientific.zcu.cz
/
jra1mw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c236ada
)
use edg_wll_LoadIntState before edg_wll_intJobStatus
author
Miloš Mulač
<mulac@civ.zcu.cz>
Mon, 3 Mar 2008 14:15:47 +0000
(14:15 +0000)
committer
Miloš Mulač
<mulac@civ.zcu.cz>
Mon, 3 Mar 2008 14:15:47 +0000
(14:15 +0000)
- should work with embrios too
org.glite.lb.server/src/bkindex.c
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.lb.server/src/bkindex.c
b/org.glite.lb.server/src/bkindex.c
index
34fc1dc
..
578900f
100644
(file)
--- 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);