summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2013-05-20 12:57:36 +0100
committerSimon MacMullen <simon@rabbitmq.com>2013-05-20 12:57:36 +0100
commit875969bb3f80061a582e45bc0a5a1de52d047829 (patch)
tree0b1c626ac405626dffa6e5472a10acbd60e160e5
parent665b622697ffcfbd0c1bffa459cb704f39a943f4 (diff)
downloadrabbitmq-server-875969bb3f80061a582e45bc0a5a1de52d047829.tar.gz
Ignore autoheal requests if we are already autohealing.
-rw-r--r--src/rabbit_autoheal.erl6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/rabbit_autoheal.erl b/src/rabbit_autoheal.erl
index 529d46b4..becfbb66 100644
--- a/src/rabbit_autoheal.erl
+++ b/src/rabbit_autoheal.erl
@@ -102,6 +102,12 @@ handle_msg({request_start, Node},
not_healing
end;
+handle_msg({request_start, Node},
+ State, _Partitions) ->
+ rabbit_log:info("Autoheal request received from ~p when in state ~p; "
+ "ignoring ~n", [Node, State]),
+ State;
+
handle_msg({become_winner, Losers},
not_healing, _Partitions) ->
rabbit_log:info("Autoheal: I am the winner, waiting for ~p to stop~n",