From: Jiří Filipovič Date: Wed, 21 Jul 2010 22:11:04 +0000 (+0000) Subject: generate error even if from > last_update (should fix occasional segfaults in batch... X-Git-Tag: glite-lb-harvester_R_1_0_8_1~15 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=073fcfb53623cad75367cc4ee00a1b32e1ac957c;p=jra1mw.git generate error even if from > last_update (should fix occasional segfaults in batch retrieval) --- 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; }