summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@rabbitmq.com>2011-06-21 14:14:14 +0100
committerMatthew Sackman <matthew@rabbitmq.com>2011-06-21 14:14:14 +0100
commit30f4103decf18fd4163aedccf35760eb19c4718a (patch)
treef3ed408d9d0843c9fad747e4675f84931eb994c3
parente7c1d76dca8b4081172d816244eeb18ada5ce98a (diff)
downloadrabbitmq-server-30f4103decf18fd4163aedccf35760eb19c4718a.tar.gz
Rip out support for dynamically adding or removing queue mirrors
-rw-r--r--docs/rabbitmqctl.1.xml43
-rw-r--r--src/rabbit_control.erl12
2 files changed, 0 insertions, 55 deletions
diff --git a/docs/rabbitmqctl.1.xml b/docs/rabbitmqctl.1.xml
index cc3d4d2a..a0f03192 100644
--- a/docs/rabbitmqctl.1.xml
+++ b/docs/rabbitmqctl.1.xml
@@ -1361,49 +1361,6 @@
</variablelist>
</refsect2>
-
- <refsect2>
- <title>Mirrored Queue Management</title>
- <para>
- Mirrored queues can have slaves dynamically added, and slaves
- or the master dynamically dropped. Refer to the <ulink
- url="http://www.rabbitmq.com/ha.html">High Availability
- guide</ulink> for further details about mirrored queues in
- general.
- </para>
-
- <variablelist>
- <varlistentry>
- <term><cmdsynopsis><command>add_queue_mirror</command> <arg choice="req"><replaceable>queue_name</replaceable></arg> <arg choice="req"><replaceable>node</replaceable></arg></cmdsynopsis></term>
- <listitem>
- <para>
- Attempts to add a mirror of the queue
- <command>queue_name</command> on
- <command>node</command>. This will only succeed if the
- queue was declared a mirrored queue and if there is no
- mirror of the queue already on the node. If it succeeds,
- the new mirror will start off as an empty slave.
- </para>
- </listitem>
- </varlistentry>
-
- <varlistentry>
- <term><cmdsynopsis><command>drop_queue_mirror</command> <arg choice="req"><replaceable>queue_name</replaceable></arg> <arg choice="req"><replaceable>node</replaceable></arg></cmdsynopsis></term>
- <listitem>
- <para>
- Attempts to drop a mirror of the queue
- <command>queue_name</command> on
- <command>node</command>. This will only succeed if the
- queue was declared a mirrored queue and if there is a
- mirror of the queue already on the node. If the node
- contains the master of the queue, a slave on some other
- node will be promoted to become the new master. It is
- not permitted to drop the only node of a mirrored-queue.
- </para>
- </listitem>
- </varlistentry>
- </variablelist>
- </refsect2>
</refsect1>
</refentry>
diff --git a/src/rabbit_control.erl b/src/rabbit_control.erl
index 9194a45b..9eef384a 100644
--- a/src/rabbit_control.erl
+++ b/src/rabbit_control.erl
@@ -274,18 +274,6 @@ action(list_queues, Node, Args, Opts, Inform) ->
[VHostArg, ArgAtoms]),
ArgAtoms);
-action(add_queue_mirror, Node, [Queue, MirrorNode], Opts, Inform) ->
- Inform("Adding mirror of queue ~p on node ~p~n", [Queue, MirrorNode]),
- VHostArg = list_to_binary(proplists:get_value(?VHOST_OPT, Opts)),
- rpc_call(Node, rabbit_mirror_queue_misc, add_slave,
- [VHostArg, list_to_binary(Queue), list_to_atom(MirrorNode)]);
-
-action(drop_queue_mirror, Node, [Queue, MirrorNode], Opts, Inform) ->
- Inform("Dropping mirror of queue ~p on node ~p~n", [Queue, MirrorNode]),
- VHostArg = list_to_binary(proplists:get_value(?VHOST_OPT, Opts)),
- rpc_call(Node, rabbit_mirror_queue_misc, drop_slave,
- [VHostArg, list_to_binary(Queue), list_to_atom(MirrorNode)]);
-
action(list_exchanges, Node, Args, Opts, Inform) ->
Inform("Listing exchanges", []),
VHostArg = list_to_binary(proplists:get_value(?VHOST_OPT, Opts)),