|
@@ -77,11 +77,11 @@ class VisitedResourceRequestTracker {
|
|
|
|
|
|
private class TrackerPerPriorityResource {
|
|
private class TrackerPerPriorityResource {
|
|
private Set<String> racksWithNodesVisited = new HashSet<>();
|
|
private Set<String> racksWithNodesVisited = new HashSet<>();
|
|
- private Set<String> racksVisted = new HashSet<>();
|
|
|
|
|
|
+ private Set<String> racksVisited = new HashSet<>();
|
|
private boolean anyVisited;
|
|
private boolean anyVisited;
|
|
|
|
|
|
private boolean visitAny() {
|
|
private boolean visitAny() {
|
|
- if (racksVisted.isEmpty() && racksWithNodesVisited.isEmpty()) {
|
|
|
|
|
|
+ if (racksVisited.isEmpty() && racksWithNodesVisited.isEmpty()) {
|
|
anyVisited = true;
|
|
anyVisited = true;
|
|
}
|
|
}
|
|
return anyVisited;
|
|
return anyVisited;
|
|
@@ -91,13 +91,13 @@ class VisitedResourceRequestTracker {
|
|
if (anyVisited || racksWithNodesVisited.contains(rackName)) {
|
|
if (anyVisited || racksWithNodesVisited.contains(rackName)) {
|
|
return false;
|
|
return false;
|
|
} else {
|
|
} else {
|
|
- racksVisted.add(rackName);
|
|
|
|
|
|
+ racksVisited.add(rackName);
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
private boolean visitNode(String rackName) {
|
|
private boolean visitNode(String rackName) {
|
|
- if (anyVisited || racksVisted.contains(rackName)) {
|
|
|
|
|
|
+ if (anyVisited || racksVisited.contains(rackName)) {
|
|
return false;
|
|
return false;
|
|
} else {
|
|
} else {
|
|
racksWithNodesVisited.add(rackName);
|
|
racksWithNodesVisited.add(rackName);
|