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:
49d09aa
)
purge only jobs that had ever some status
author
Miloš Mulač
<mulac@civ.zcu.cz>
Sun, 25 May 2008 17:16:23 +0000
(17:16 +0000)
committer
Miloš Mulač
<mulac@civ.zcu.cz>
Sun, 25 May 2008 17:16:23 +0000
(17:16 +0000)
- prevents to purge grey jobs without status (i.e. with UserTag only)
- such greyjob will dacay in LB forever?
org.glite.lb.server/src/srv_purge.c
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.lb.server/src/srv_purge.c
b/org.glite.lb.server/src/srv_purge.c
index
b044bf5
..
25c41bf
100644
(file)
--- a/
org.glite.lb.server/src/srv_purge.c
+++ b/
org.glite.lb.server/src/srv_purge.c
@@
-325,7
+325,7
@@
int edg_wll_PurgeServer(edg_wll_Context ctx,const edg_wll_PurgeRequest *request,
goto abort;
}
- if (now-stat.lastUpdateTime.tv_sec > timeout[stat.state] && !check_strict_jobid(ctx,job))
+ if (
stat.lastUpdateTime.tv_sec &&
now-stat.lastUpdateTime.tv_sec > timeout[stat.state] && !check_strict_jobid(ctx,job))
{
if (purge_one(ctx,job,dumpfile,request->flags&EDG_WLL_PURGE_REALLY_PURGE,ctx->isProxy)) {
edg_wll_FreeStatus(&stat);