Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ Revision history for Net-ZooKeeper-Lock

{{$NEXT}}

0.04 Tue Oct 14, 2014
Resolve Dead lock case when node is deleted before entering exists method.

0.03 Sun Oct 28, 2012
New method lock_path() and ability to store arbitrary data in a node
added by Oleg Komarov.
Expand Down
4 changes: 4 additions & 0 deletions lib/Net/ZooKeeper/Lock.pm
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,10 @@ sub _exists {
);

if (!$exists) {
if ($zkh->get_error() == ZNONODE)
{
last;
}
next;
} else {
my $ret = $watcher->wait;
Expand Down