Skip to content

Commit

Permalink
Check for GTE QMax instead of Equal To
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Ferrigni committed Oct 6, 2014
1 parent 6bfc457 commit 691c8d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pooler.erl
Expand Up @@ -574,7 +574,7 @@ take_member_from_pool_queued(Pool0 = #pool{queue_max = QMax,
From = {CPid, _},
Timeout) when is_pid(CPid) ->
case {take_member_from_pool(Pool0, From), queue:len(Requestors)} of
{{error_no_members, Pool1}, QMax} ->
{{error_no_members, Pool1}, QLen} when QLen >= QMax ->
send_metric(Pool1, events, error_no_members, history),
send_metric(Pool1, queue_max_reached, {inc, 1}, counter),
{error_no_members, Pool1};
Expand Down

0 comments on commit 691c8d6

Please sign in to comment.