Skip to content

Commit

Permalink
ZOOKEEPER-1380. zkperl: _zk_release_watch doesn't remove items proper…
Browse files Browse the repository at this point in the history
…ly from the watch list. (Botond Hejj via mahadev)

git-svn-id: https://svn.apache.org/repos/asf/zookeeper/trunk@1381897 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Mahadev Konar committed Sep 7, 2012
1 parent 21cf327 commit f57765e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGES.txt
Expand Up @@ -237,6 +237,9 @@ BUGFIXES:
ZOOKEEPER-1105 c client zookeeper_close not send CLOSE_OP request to server
(lincoln.lee via michim)

ZOOKEEPER-1380. zkperl: _zk_release_watch doesn't remove items properly from
the watch list. (Botond Hejj via mahadev)

IMPROVEMENTS:

ZOOKEEPER-1170. Fix compiler (eclipse) warnings: unused imports,
Expand Down
4 changes: 2 additions & 2 deletions src/contrib/zkperl/ZooKeeper.xs
Expand Up @@ -251,12 +251,12 @@ static void _zk_release_watch(pTHX_ zk_watch_t *watch, int list)
if (list) {
if (watch->prev) {
watch->prev->next = watch->next;
watch->prev = NULL;
}
if (watch->next) {
watch->next->prev = watch->prev;
watch->next = NULL;
}
watch->prev = NULL;
watch->next = NULL;
}

if (--watch->ref_count == 0) {
Expand Down

0 comments on commit f57765e

Please sign in to comment.