summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Watson <tim@rabbitmq.com>2012-11-29 12:58:40 +0000
committerTim Watson <tim@rabbitmq.com>2012-11-29 12:58:40 +0000
commit5a32c418160228e44db3a1845c3aadda5ee9f417 (patch)
tree79d999e729f2504978dbbbe7358900f20bed5205
parent1fb5bcd81132bfcfc19e8c92c36edd1ee2651896 (diff)
downloadrabbitmq-server-git-5a32c418160228e44db3a1845c3aadda5ee9f417.tar.gz
explain why we're not using lists:keyfind/3
-rw-r--r--src/supervisor2.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/supervisor2.erl b/src/supervisor2.erl
index 76dc4e8301..8a47c67d7c 100644
--- a/src/supervisor2.erl
+++ b/src/supervisor2.erl
@@ -780,6 +780,7 @@ restart_child(Pid, Reason, #state{children = [Child]} = State) when ?is_simple(S
restart_child(Pid, Reason, State) ->
Children = State#state.children,
+ %% we still support >= R12-B3 in which lists:keyfind/3 doesn't exist
case lists:keysearch(Pid, #child.pid, Children) of
{value, Child} ->
RestartType = Child#child.restart_type,