lib/rbbt/persist.rb in rbbt-util-5.19.5 vs lib/rbbt/persist.rb in rbbt-util-5.19.6
- old
+ new
@@ -286,10 +286,9 @@
lock_filename = Persist.persistence_path(path + '.persist', {:dir => Persist.lock_dir})
begin
lock_options = Misc.pull_keys persist_options, :lock
lock_options = lock_options[:lock] if Hash === lock_options[:lock]
Misc.lock lock_filename, lock_options do |lockfile|
- iii lockfile
Misc.insist do
if is_persisted?(path, persist_options)
Log.low "Persist up-to-date (suddenly): #{ path } - #{Misc.fingerprint persist_options}"
lockfile.unlock if lockfile.locked?
return path if persist_options[:no_load]