HADOOP-16662. Remove unnecessary InnerNode check in NetworkTopology#add(). Contributed by Lisheng Sun.
This commit is contained in:
parent
c2cd847a15
commit
ae4b1325d1
|
@ -146,10 +146,8 @@ public class NetworkTopology {
|
|||
if (rack == null) {
|
||||
incrementRacks();
|
||||
}
|
||||
if (!(node instanceof InnerNode)) {
|
||||
if (depthOfAllLeaves == -1) {
|
||||
depthOfAllLeaves = node.getLevel();
|
||||
}
|
||||
if (depthOfAllLeaves == -1) {
|
||||
depthOfAllLeaves = node.getLevel();
|
||||
}
|
||||
}
|
||||
LOG.debug("NetworkTopology became:\n{}", this);
|
||||
|
|
Loading…
Reference in New Issue