Do not look for a zombie in case the result set is empty due to EPERM (Partial fix...
authorZdeněk Šustr <sustr4@cesnet.cz>
Tue, 12 Mar 2013 10:29:36 +0000 (10:29 +0000)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Tue, 12 Mar 2013 22:23:53 +0000 (23:23 +0100)
org.glite.lb.server/src/query.c

index e480614..2f14dae 100644 (file)
@@ -615,7 +615,7 @@ limit_cycle_cleanup:
                glite_lbu_FreeStmt(&sh);
        } while ( limit_loop );
 
-       if ( !n ) {
+       if ( !n && (ctx->errCode != EPERM) ) {
                if(!jobid_only_query(conditions)) {
                        i = 0;
                        while(conditions[i]) {