lvfangmin commented on a change in pull request #922: ZOOKEEPER-3361: Add multi
version of getChildren request
URL: https://github.com/apache/zookeeper/pull/922#discussion_r283071700
##########
File path: zookeeper-server/src/main/java/org/apache/zookeeper/ZooKeeper.java
##########
@@ -562,12 +567,14 @@ public void register(int rc) {
if (shouldAddWatch(rc)) {
Map<String, Set<Watcher>> watches = getWatches(rc);
synchronized(watches) {
- Set<Watcher> watchers = watches.get(clientPath);
- if (watchers == null) {
- watchers = new HashSet<Watcher>();
- watches.put(clientPath, watchers);
+ for(String clientPath : clientPaths) {
Review comment:
nit: space after (.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services