diff options
author | Matthias Radestock <matthias@rabbitmq.com> | 2010-08-16 21:13:09 +0100 |
---|---|---|
committer | Matthias Radestock <matthias@rabbitmq.com> | 2010-08-16 21:13:09 +0100 |
commit | 6b957678abebb1010b7e123b0b6a7ecb5e55f25e (patch) | |
tree | acd03aa2456a0030fe74c35f61507d3505bcb035 | |
parent | 62669c80e6351dc5298c190abeba443abb6580f0 (diff) | |
download | rabbitmq-server-6b957678abebb1010b7e123b0b6a7ecb5e55f25e.tar.gz |
obtain_limit can be 'infinity'
-rw-r--r-- | src/file_handle_cache.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_handle_cache.erl b/src/file_handle_cache.erl index e5ab386c..80b92d77 100644 --- a/src/file_handle_cache.erl +++ b/src/file_handle_cache.erl @@ -749,7 +749,7 @@ handle_call({obtain, Pid}, From, State = #fhc_state { obtain_limit = Limit, obtain_count = Count, obtain_pending = Pending, elders = Elders }) - when Count >= Limit -> + when Limit =/= infinity andalso Count >= Limit -> {noreply, State #fhc_state { obtain_pending = [From | Pending], elders = dict:erase(Pid, Elders) }}; handle_call({obtain, Pid}, From, State = #fhc_state { obtain_count = Count, |