From: Miloš Mulač Date: Thu, 19 Apr 2007 13:24:34 +0000 (+0000) Subject: Merged from head: X-Git-Tag: merge_30_31_dst5~7 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=1d8c0c6c71a7ac2b1142200e5cecf6124a522d09;p=jra1mw.git Merged from head: Print only warning when not purging jobs not matching running LB server or port --- diff --git a/org.glite.lb.server/src/srv_purge.c b/org.glite.lb.server/src/srv_purge.c index d7ce6fe..5efad98 100644 --- a/org.glite.lb.server/src/srv_purge.c +++ b/org.glite.lb.server/src/srv_purge.c @@ -330,10 +330,18 @@ abort: if (parse && !edg_wll_Error(ctx,NULL,NULL)) { - if ( naffected_jobs ) - edg_wll_SetError(ctx,EINVAL,"Invalid JobId(s) but other jobs purged"); - else - edg_wll_SetError(ctx,EINVAL,"Invalid JobId(s)"); + if ( naffected_jobs ) { + fprintf(stderr,"[%d] Found some jobs not matching server address/port;"\ + " these were not purged but other jobs purged.\n", getpid()); + syslog(LOG_INFO,"Found some jobs not matching server address/port;"\ + " these were not purged but other jobs purged"); + } + else { + fprintf(stderr,"[%d] Found only jobs not matching server address/port;"\ + " these were not purged.\n", getpid()); + syslog(LOG_INFO,"Found only jobs not matching server address/port;"\ + " these were not purged."); + } } switch ( edg_wll_Error(ctx,NULL,NULL) )