|
@@ -515,7 +515,7 @@ public class ZooKeeper implements AutoCloseable {
|
|
synchronized (existWatches) {
|
|
synchronized (existWatches) {
|
|
Set<Watcher> list = existWatches.remove(clientPath);
|
|
Set<Watcher> list = existWatches.remove(clientPath);
|
|
if (list != null) {
|
|
if (list != null) {
|
|
- addTo(existWatches.remove(clientPath), result);
|
|
|
|
|
|
+ addTo(list, result);
|
|
LOG.warn("We are triggering an exists watch for delete! Shouldn't happen!");
|
|
LOG.warn("We are triggering an exists watch for delete! Shouldn't happen!");
|
|
}
|
|
}
|
|
}
|
|
}
|