summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_vhost_limit.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rabbit_vhost_limit.erl b/src/rabbit_vhost_limit.erl
index 54ed7c1c62..bd79f4dd45 100644
--- a/src/rabbit_vhost_limit.erl
+++ b/src/rabbit_vhost_limit.erl
@@ -87,7 +87,8 @@ is_over_queue_limit(VirtualHost) ->
case queue_limit(VirtualHost) of
%% no limit configured
undefined -> false;
- %% with limit = 0, no connections are allowed
+ %% with limit = 0, no queues can be declared (perhaps not very
+ %% useful but consistent with the connection limit)
{ok, 0} -> {true, 0};
{ok, Limit} when is_integer(Limit) andalso Limit > 0 ->
QueueCount = rabbit_amqqueue:count(VirtualHost),