summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@rabbitmq.com>2011-08-11 14:14:11 +0100
committerMatthew Sackman <matthew@rabbitmq.com>2011-08-11 14:14:11 +0100
commit76b9c3d51e47bf952e0c0fa30947588a96ff1d82 (patch)
tree734dc4045e2ea4d3189412236dae6820cf8a046c
parent43add502cad23c416f37346ab4de68f01c8a496c (diff)
downloadrabbitmq-server-76b9c3d51e47bf952e0c0fa30947588a96ff1d82.tar.gz
Report empty list of slave_pids when mirroring is off, rather than empty atom
-rw-r--r--src/rabbit_amqqueue_process.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_amqqueue_process.erl b/src/rabbit_amqqueue_process.erl
index 86daa155..bc1a85d0 100644
--- a/src/rabbit_amqqueue_process.erl
+++ b/src/rabbit_amqqueue_process.erl
@@ -776,7 +776,7 @@ i(slave_pids, #q{q = #amqqueue{name = Name}}) ->
{ok, #amqqueue{mirror_nodes = MNodes,
slave_pids = SPids}} = rabbit_amqqueue:lookup(Name),
case MNodes of
- undefined -> '';
+ undefined -> [];
_ -> SPids
end;
i(backing_queue_status, #q{backing_queue_state = BQS, backing_queue = BQ}) ->