fix backwards compat issue with master

This commit is contained in:
fjy 2014-02-12 20:00:43 -08:00
parent b019fea788
commit 60e950fad8
1 changed files with 3 additions and 3 deletions

View File

@ -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());
String tier = DruidServer.DEFAULT_TIER;
if (tiers.size() > 1) {
tiers.remove(DruidServer.DEFAULT_TIER); tiers.remove(DruidServer.DEFAULT_TIER);
String tier = DruidServer.DEFAULT_TIER;
if (!tiers.isEmpty()) {
tier = tiers.iterator().next(); tier = tiers.iterator().next();
} }