From: Miloš Mulač Date: Sun, 25 May 2008 17:16:23 +0000 (+0000) Subject: purge only jobs that had ever some status X-Git-Tag: glite-yaim-lb_R_4_0_2_1~15 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=f0f06374fa273df1f4373ef12c0d86e9bd35239f;p=jra1mw.git purge only jobs that had ever some status - prevents to purge grey jobs without status (i.e. with UserTag only) - such greyjob will dacay in LB forever? --- diff --git a/org.glite.lb.server/src/srv_purge.c b/org.glite.lb.server/src/srv_purge.c index b044bf5..25c41bf 100644 --- 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);