Equality and inequality are not the same thing (JDL attribute (un)matching fixed)
authorZdeněk Šustr <sustr4@cesnet.cz>
Mon, 23 Jul 2012 16:07:18 +0000 (16:07 +0000)
committerZdeněk Šustr <sustr4@cesnet.cz>
Mon, 23 Jul 2012 16:07:18 +0000 (16:07 +0000)
org.glite.lb.server/src/query.c

index ff7fecb..859d3a6 100644 (file)
@@ -1747,8 +1747,8 @@ int match_status(edg_wll_Context ctx, const edg_wll_JobStat *oldstat, const edg_
 
                                                if ( !strcmp(conds[i][j].value.c, extr_val) ) {
                                                        if ( conds[i][j].op == EDG_WLL_QUERY_OP_EQUAL ) goto or_satisfied;
-                                                       else if ( conds[i][j].op == EDG_WLL_QUERY_OP_UNEQUAL ) goto or_satisfied;
                                                }
+                                               else if ( conds[i][j].op == EDG_WLL_QUERY_OP_UNEQUAL ) goto or_satisfied;
                                        }
                                }
                                break;