lib/mongoid/locker.rb in mongoid-locker-0.2.0 vs lib/mongoid/locker.rb in mongoid-locker-0.2.1
- old
+ new
@@ -118,9 +118,11 @@
# only wait once
opts.dup
opts.delete :wait
+ # reload to update with any new values
+ self.reload
# retry lock grab
self.lock opts
else
raise LockError.new("could not get lock")
end