Permalink
Browse files

retry creation of the root_lock_path when a NoNode is raised, bump ve…

…rsion to 1.6.3
  • Loading branch information...
slyphon committed Jun 6, 2012
1 parent 174b2cf commit 8034e34cc9033cf76cd052c687cbc555c7e61a0b
Showing with 3 additions and 1 deletion.
  1. +2 −0 lib/zk/locker/locker_base.rb
  2. +1 −1 lib/zk/version.rb
@@ -265,6 +265,8 @@ def ordered_lock_children(watch=false)
#
def create_root_path!
zk.mkdir_p(@root_lock_path)
+ rescue NoNode
+ retry
end
# performs the checks that (according to the recipe) mean that we hold
View
@@ -1,3 +1,3 @@
module ZK
- VERSION = "1.6.2"
+ VERSION = "1.6.3"
end

0 comments on commit 8034e34

Please sign in to comment.