Fix issue with sumstats script and fix baselines that were crashing previously

This commit is contained in:
Tim Wojtulewicz 2020-05-08 15:38:17 -07:00
parent 7496cf14c7
commit b8287a3375
3 changed files with 10 additions and 7 deletions

View file

@ -328,13 +328,16 @@ function request_all_current_keys(uid: string, ss_name: string, cleanup: bool)
if ( uid in stats_keys && |stats_keys[uid]| > 0 )
{
#print fmt(" -- %d remaining keys here", |stats_keys[uid]|);
for ( key in stats_keys[uid] )
local key: Key;
for ( k in stats_keys[uid] )
{
done_with[uid] = 0;
event SumStats::cluster_get_result(uid, ss_name, key, cleanup);
delete stats_keys[uid][key];
key = k;
break; # only a single key
}
done_with[uid] = 0;
event SumStats::cluster_get_result(uid, ss_name, key, cleanup);
delete stats_keys[uid][key];
}
else
{