summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2010-08-16 21:13:09 +0100
committerMatthias Radestock <matthias@rabbitmq.com>2010-08-16 21:13:09 +0100
commitc68dac371ded8c9b62ac5c474e9e8d89028a9fce (patch)
treeacd03aa2456a0030fe74c35f61507d3505bcb035 /src
parent85cae727dfe590101eb2dea6aabbfaa4af178882 (diff)
downloadrabbitmq-server-git-c68dac371ded8c9b62ac5c474e9e8d89028a9fce.tar.gz
obtain_limit can be 'infinity'
Diffstat (limited to 'src')
-rw-r--r--src/file_handle_cache.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_handle_cache.erl b/src/file_handle_cache.erl
index e5ab386c6a..80b92d779e 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,