lib/ruote/exp/ro_persist.rb in ruote-2.1.9 vs lib/ruote/exp/ro_persist.rb in ruote-2.1.10

- old
+ new

@@ -52,28 +52,32 @@ def try_persist r = @context.storage.put(@h) - #puts "+ per #{h.fei['expid']} #{tree.first} #{h._rev} --> #{r.class}" - #Ruote.p_caller('+ per') if r != nil || h.fei['expid'] == '0_0' + #t = Thread.current.object_id.to_s[-3..-1] + #puts "+ per #{h.fei['expid']} #{tree.first} #{h._rev} #{t} -> #{r.class}" + #Ruote.p_caller('+ per') #if r != nil || h.fei['expid'] == '0_0' r end def try_unpersist r = @context.storage.delete(@h) - #puts "- unp #{h.fei['expid']} #{tree.first} #{h._rev} --> #{r.class}" - #Ruote.p_caller('- unp') if r != nil || h.fei['expid'] == '0_0' + #t = Thread.current.object_id.to_s[-3..-1] + #puts "- unp #{h.fei['expid']} #{tree.first} #{h._rev} #{t} -> #{r.class}" + #Ruote.p_caller('- unp') #if r != nil || h.fei['expid'] == '0_0' return r if r #if h.has_error err = @context.storage.get('errors', "err_#{Ruote.to_storage_id(h.fei)}") @context.storage.delete(err) if err #end + # removes any error in the journal for this expression + # since it will now be gone, no need to keep track of its errors nil end #--