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:
parent
f2bb3a91d2
commit
3f8324892a
|
|
@ -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) ->
|
||||
|
|
|
|||
Loading…
Reference in New Issue