[ https://issues.apache.org/jira/browse/ZOOKEEPER-2611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15560506#comment-15560506 ]
Raul Gutierrez Segales commented on ZOOKEEPER-2611: --------------------------------------------------- The context parameter is in the wrong place (the last parameter is struct Stat \*stat, whereas the 4th param is void\* watcherCtx): {code} int zoo_wget(zhandle_t *zh, const char *path, watcher_fn watcher, void* watcherCtx, char *buffer, int* buffer_len, struct Stat *stat) {code} > zoo_remove_watchers - can remove the wrong watch > ------------------------------------------------- > > Key: ZOOKEEPER-2611 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2611 > Project: ZooKeeper > Issue Type: Bug > Components: c client > Reporter: Eyal leshem > Priority: Critical > Attachments: ZOOKEEPER-2611.patch > > > The actual problem is in the function "removeWatcherFromList" - > That when we check if we need to delete the watch - we compare the > WatcherCtx to one node before the one we want to delete.. -- This message was sent by Atlassian JIRA (v6.3.4#6332)