mirror of https://github.com/apache/nifi.git
NIFI-571: Removed checking List<List<ControllerServiceNode>> to see if it contains a ControllerServiceNode, as it would always return false; intent was to check all inner Lists, but it's really not necessary (a bit of an optimization) that just confuses things
This commit is contained in:
parent
089897190c
commit
facc4242bd
|
@ -391,10 +391,6 @@ public class StandardControllerServiceProvider implements ControllerServiceProvi
|
||||||
final List<List<ControllerServiceNode>> orderedNodeLists = new ArrayList<>();
|
final List<List<ControllerServiceNode>> orderedNodeLists = new ArrayList<>();
|
||||||
|
|
||||||
for (final ControllerServiceNode node : serviceNodeMap.values()) {
|
for (final ControllerServiceNode node : serviceNodeMap.values()) {
|
||||||
if (orderedNodeLists.contains(node)) {
|
|
||||||
continue; // this node is already in the list.
|
|
||||||
}
|
|
||||||
|
|
||||||
final List<ControllerServiceNode> branch = new ArrayList<>();
|
final List<ControllerServiceNode> branch = new ArrayList<>();
|
||||||
determineEnablingOrder(serviceNodeMap, node, branch, new HashSet<ControllerServiceNode>());
|
determineEnablingOrder(serviceNodeMap, node, branch, new HashSet<ControllerServiceNode>());
|
||||||
orderedNodeLists.add(branch);
|
orderedNodeLists.add(branch);
|
||||||
|
|
Loading…
Reference in New Issue