mirror of https://github.com/apache/druid.git
fix backwards compat issue with master
This commit is contained in:
parent
b019fea788
commit
60e950fad8
|
@ -380,9 +380,9 @@ public class InfoResource
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
Set<String> tiers = Sets.newHashSet(((LoadRule) rule).getTieredReplicants().keySet());
|
Set<String> tiers = Sets.newHashSet(((LoadRule) rule).getTieredReplicants().keySet());
|
||||||
|
tiers.remove(DruidServer.DEFAULT_TIER);
|
||||||
String tier = DruidServer.DEFAULT_TIER;
|
String tier = DruidServer.DEFAULT_TIER;
|
||||||
if (tiers.size() > 1) {
|
if (!tiers.isEmpty()) {
|
||||||
tiers.remove(DruidServer.DEFAULT_TIER);
|
|
||||||
tier = tiers.iterator().next();
|
tier = tiers.iterator().next();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue