From c389799ae87f2c2fb413321bbb7390271a6adbf0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Milo=C5=A1=20Mula=C4=8D?= Date: Thu, 13 Dec 2007 08:48:13 +0000 Subject: [PATCH] add proxy flag during updates --- org.glite.lb.server/src/store.c.T | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 1.8.2.3