From 073fcfb53623cad75367cc4ee00a1b32e1ac957c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ji=C5=99=C3=AD=20Filipovi=C4=8D?= Date: Wed, 21 Jul 2010 22:11:04 +0000 Subject: [PATCH] generate error even if from > last_update (should fix occasional segfaults in batch retrieval) --- org.glite.lb.server/src/stats.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/org.glite.lb.server/src/stats.c b/org.glite.lb.server/src/stats.c index 78b9717..c53b065 100644 --- a/org.glite.lb.server/src/stats.c +++ b/org.glite.lb.server/src/stats.c @@ -483,12 +483,6 @@ static int stateRateRequest( "best match: archive %d, interval %ld", matchi, match); if (matchi < 0) { - if (*from > g->last_update) { - /* special case -- we are sure that nothing arrived */ - *rate = 0; - *res_from = *res_to = stats->archives[0].interval; - goto cleanup; - } edg_wll_SetError(ctx,ENOENT,"no data available"); goto cleanup; } @@ -710,12 +704,6 @@ static int stateDurationFromToRequest( "best match: archive %d, interval %ld", matchi, match); if (matchi < 0) { - if (*from > g->last_update) { - /* special case -- we are sure that nothing arrived */ - *duration = 0.0f; - *res_from = *res_to = stats->archives[0].interval; - goto cleanup; - } edg_wll_SetError(ctx,ENOENT,"no data available"); goto cleanup; } -- 1.8.2.3