From: Miloš Mulač Date: Thu, 13 Dec 2007 08:48:13 +0000 (+0000) Subject: add proxy flag during updates X-Git-Tag: merge_313_3_dst~15 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=c389799ae87f2c2fb413321bbb7390271a6adbf0;p=jra1mw.git add proxy flag during updates --- diff --git a/org.glite.lb.server/src/store.c.T b/org.glite.lb.server/src/store.c.T index 75b63ef..c5b2913 100644 --- a/org.glite.lb.server/src/store.c.T +++ b/org.glite.lb.server/src/store.c.T @@ -414,7 +414,7 @@ int store_job_server_proxy(edg_wll_Context ctx, edg_wll_Event *event, char *jobI /* supplementary re-registration (JDL of subjob, etc.) */ if ((ctx->srvPort == jobIdPort) && !strcmp(jobIdHost,ctx->srvName)) { /* previous registration via GSI required */ - trio_asprintf(&q,"update jobs set jobid='%|Ss' where jobid='%|Ss'", + trio_asprintf(&q,"update jobs set jobid='%|Ss', proxy='1' where jobid='%|Ss'", unique, unique); /* does the job exists ? */ if (edg_wll_ExecSQL(ctx,q,NULL) < 0) { @@ -437,7 +437,7 @@ int store_job_server_proxy(edg_wll_Context ctx, edg_wll_Event *event, char *jobI } else { /* any other event than JobReg */ - trio_asprintf(&q,"update jobs set jobid='%|Ss' where jobid='%|Ss'", + trio_asprintf(&q,"update jobs set jobid='%|Ss', proxy='1' where jobid='%|Ss'", unique, unique); /* does the job exists ? now we require registration on proxy too */ if (edg_wll_ExecSQL(ctx,q,NULL) < 0) {