Don't attempt to short-circuit the '$end_of_table' case, this can send us into an infinite loop if the table is empty.

This commit is contained in:
Simon MacMullen 2013-02-28 10:46:10 +00:00
parent f2bb3a91d2
commit 3f8324892a
1 changed files with 1 additions and 1 deletions

View File

@ -975,7 +975,7 @@ gc_batch(State = #state{aggregated_stats = ETS,
[gc(Key, Stats, Policies, Now, ETS) || [{Key, Stats}] <- Matches],
State#state{gc_continuation = Continuation1};
'$end_of_table' ->
gc_batch(State#state{gc_continuation = undefined})
State#state{gc_continuation = undefined}
end.
gc({{Type, Id}, Key}, Stats, Policies, Now, ETS) ->