Return also incomplete results for job queries - fix backported.
authorZdeněk Šustr <sustr4@cesnet.cz>
Mon, 10 Sep 2012 13:23:19 +0000 (13:23 +0000)
committerZdeněk Šustr <sustr4@cesnet.cz>
Mon, 10 Sep 2012 13:23:19 +0000 (13:23 +0000)
org.glite.lb.server/src/query.c

index 3aa4da2..e480614 100644 (file)
@@ -668,6 +668,12 @@ limit_cycle_cleanup:
                if (eidrm) edg_wll_SetError(ctx, EIDRM, "matching job already purged");
                else edg_wll_SetError(ctx, ENOENT, "no matching jobs found");
        }
+       else {
+               // There was permission problem but there were still some results
+               glite_common_log(LOG_CATEGORY_LB_SERVER, LOG_PRIORITY_DEBUG, "Results were returned for query, but also error code %d. Resetting.", edg_wll_Error(ctx,NULL,NULL));
+               if (edg_wll_Error(ctx,NULL,NULL) == EPERM) edg_wll_ResetError(ctx);
+       }
+
 
 cleanup:
        // finish