From: Zdeněk Šustr Date: Wed, 11 Apr 2012 08:34:41 +0000 (+0000) Subject: Indexing on parent_job is built in. X-Git-Tag: glite-px-proxyrenewal_R_1_3_25_2~25 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=a3c6709694acb65d148fe285d8d05fc06a850a2a;p=jra1mw.git Indexing on parent_job is built in. Fix for SB #78743 --- diff --git a/org.glite.lb.server/src/query.c b/org.glite.lb.server/src/query.c index 574fb62..ff7fecb 100644 --- a/org.glite.lb.server/src/query.c +++ b/org.glite.lb.server/src/query.c @@ -1209,22 +1209,15 @@ static char *jc_to_head_where( break; case EDG_WLL_QUERY_ATTR_PARENT: - if ( !is_indexed(&(jc[m][n]), ctx) - || !(cname = edg_wll_QueryRecToColumn(&(jc[m][n]))) ) - { - *where_flags |= FL_FILTER; - break; - } - *where_flags |= FL_SEL_STATUS; aux = edg_wlc_JobIdGetUnique(jc[m][n].value.j); if ( conds ) { - trio_asprintf(&tmps, "%s OR s.%s%s'%|Ss'", conds, cname, opToString(jc[m][n].op), aux); + trio_asprintf(&tmps, "%s OR s.parent_job%s'%|Ss'", conds, opToString(jc[m][n].op), aux); free(conds); conds = tmps; } else - trio_asprintf(&conds, "s.%s%s'%|Ss'", cname, opToString(jc[m][n].op), aux); + trio_asprintf(&conds, "s.parent_job%s'%|Ss'", opToString(jc[m][n].op), aux); free(aux); break;