From a16d10f55fd5ddabb16ac50015d7edde4e1c33d6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ji=C5=99=C3=AD=20=C5=A0kr=C3=A1bal?= Date: Fri, 22 Apr 2005 10:05:28 +0000 Subject: [PATCH] - do check for index in lbproxy also (rolling back last changes) --- org.glite.lb.server/src/query.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/org.glite.lb.server/src/query.c b/org.glite.lb.server/src/query.c index 1f23f5c..d2f4b1b 100644 --- a/org.glite.lb.server/src/query.c +++ b/org.glite.lb.server/src/query.c @@ -846,7 +846,7 @@ static char *jc_to_head_where( for ( n = 0; jc[m][n].attr; n++ ) switch (jc[m][n].attr) { case EDG_WLL_QUERY_ATTR_TIME: - if ( (!ctx->isProxy && !is_indexed(&(jc[m][n]), ctx)) + if ( !is_indexed(&(jc[m][n]), ctx) || !(cname = edg_wll_QueryRecToColumn(&(jc[m][n]))) ) break; @@ -895,7 +895,7 @@ static char *jc_to_head_where( break; case EDG_WLL_QUERY_ATTR_PARENT: - if ( (!ctx->isProxy && !is_indexed(&(jc[m][n]), ctx)) + if ( !is_indexed(&(jc[m][n]), ctx) || !(cname = edg_wll_QueryRecToColumn(&(jc[m][n]))) ) break; @@ -912,7 +912,7 @@ static char *jc_to_head_where( break; case EDG_WLL_QUERY_ATTR_OWNER: - if ( (!ctx->isProxy && !is_indexed(&(jc[m][n]), ctx)) + if ( !is_indexed(&(jc[m][n]), ctx) || !(cname = edg_wll_QueryRecToColumn(&(jc[m][n]))) ) break; @@ -944,7 +944,7 @@ static char *jc_to_head_where( case EDG_WLL_QUERY_ATTR_DONECODE: case EDG_WLL_QUERY_ATTR_EXITCODE: case EDG_WLL_QUERY_ATTR_STATUS: - if ( (!ctx->isProxy && !is_indexed(&(jc[m][n]), ctx)) + if ( !is_indexed(&(jc[m][n]), ctx) || !(cname = edg_wll_QueryRecToColumn(&(jc[m][n]))) ) break; @@ -970,7 +970,7 @@ static char *jc_to_head_where( case EDG_WLL_QUERY_ATTR_LOCATION: case EDG_WLL_QUERY_ATTR_RESUBMITTED: case EDG_WLL_QUERY_ATTR_USERTAG: - if ( (!ctx->isProxy && !is_indexed(&(jc[m][n]), ctx)) + if ( !is_indexed(&(jc[m][n]), ctx) || !(cname = edg_wll_QueryRecToColumn(&(jc[m][n]))) ) break; -- 1.8.2.3