提交 a46c4592 编写于 作者: F fjy

a few cleanups

上级 db5f04c8
...@@ -170,10 +170,9 @@ public class SelectQueryQueryToolChest extends QueryToolChest<Result<SelectResul ...@@ -170,10 +170,9 @@ public class SelectQueryQueryToolChest extends QueryToolChest<Result<SelectResul
++index; ++index;
} }
final Set<String> metrics = Sets.newTreeSet(); final Set<String> metrics = Sets.newTreeSet();
if (query.getMetrics() != null) { if (query.getMetrics() != null) {
dimensions.addAll(query.getMetrics()); metrics.addAll(query.getMetrics());
} }
final byte[][] metricBytes = new byte[metrics.size()][]; final byte[][] metricBytes = new byte[metrics.size()][];
......
...@@ -212,11 +212,6 @@ public class Announcer ...@@ -212,11 +212,6 @@ public class Announcer
pathsToReinstate.add(path); pathsToReinstate.add(path);
} }
for (ChildData data : cache.getCurrentData()) {
log.info("Node[%s] in cache is removed to reinstate.", data.getPath());
pathsToReinstate.remove(data.getPath());
}
if (!pathsToReinstate.isEmpty() && !pathsLost.compareAndSet(null, pathsToReinstate)) { if (!pathsToReinstate.isEmpty() && !pathsLost.compareAndSet(null, pathsToReinstate)) {
log.info("Already had a pathsLost set!?[%s]", parentPath); log.info("Already had a pathsLost set!?[%s]", parentPath);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册