Explain why we need to keep this code.

This commit is contained in:
Simon MacMullen 2012-04-17 16:05:47 +01:00
parent 73b06341a3
commit 751b9485aa
1 changed files with 4 additions and 1 deletions

View File

@ -42,7 +42,10 @@ adjust(Sup, XName, everything) ->
adjust(Sup, XName, {connection, ConnName}) ->
OldUpstreams0 = children(Sup, ConnName),
NewUpstreams0 = upstreams(XName, ConnName),
%% If any haven't changed, don't restart them
%% If any haven't changed, don't restart them. The broker will
%% avoid telling us about connections that have not changed
%% syntactically, but even if one has, this X may not have that
%% connection in an upstream, so we still need to check here.
{OldUpstreams, NewUpstreams} =
lists:foldl(
fun (OldU, {OldUs, NewUs}) ->