summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2013-01-07 12:39:21 +0000
committerSimon MacMullen <simon@rabbitmq.com>2013-01-07 12:39:21 +0000
commit461310b1d1a7205b9fcaa50ff41a2dd32e51b869 (patch)
treee19cc0aaa9a6530e3eb8759e003d0785927b059a
parente85848a7fffba26d3859a54d81a8b84ee9533f63 (diff)
downloadrabbitmq-server-461310b1d1a7205b9fcaa50ff41a2dd32e51b869.tar.gz
Idempotence
-rw-r--r--src/rabbit_amqqueue_process.erl2
-rw-r--r--src/rabbit_control_main.erl6
2 files changed, 7 insertions, 1 deletions
diff --git a/src/rabbit_amqqueue_process.erl b/src/rabbit_amqqueue_process.erl
index 64d55684..bb1a5f86 100644
--- a/src/rabbit_amqqueue_process.erl
+++ b/src/rabbit_amqqueue_process.erl
@@ -1166,7 +1166,7 @@ handle_call(sync_mirrors, _From, State) ->
%% By definition if we get this message here we do not have to do anything.
handle_call(cancel_sync_mirrors, _From, State) ->
- reply({error, not_syncing}, State);
+ reply({ok, not_syncing}, State);
handle_call(force_event_refresh, _From,
State = #q{exclusive_consumer = Exclusive}) ->
diff --git a/src/rabbit_control_main.erl b/src/rabbit_control_main.erl
index 9f48877c..0f1620bf 100644
--- a/src/rabbit_control_main.erl
+++ b/src/rabbit_control_main.erl
@@ -161,6 +161,12 @@ start() ->
false -> io:format("...done.~n")
end,
rabbit_misc:quit(0);
+ {ok, Info} ->
+ case Quiet of
+ true -> ok;
+ false -> io:format("...done (~p).~n", [Info])
+ end,
+ rabbit_misc:quit(0);
{'EXIT', {function_clause, [{?MODULE, action, _} | _]}} -> %% < R15
PrintInvalidCommandError(),
usage();