lib/zk/locker/locker_base.rb in zk-1.6.2 vs lib/zk/locker/locker_base.rb in zk-1.6.3
- old
+ new
@@ -263,9 +263,11 @@
# root_lock_path is /_zklocking/foobar
#
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
# the lock. used by (#assert!)
#