class Concurrent::Transaction

def commit

def commit
  return false unless valid?
  @write_log.each_pair do |tvar, value|
    tvar.unsafe_value = value
    tvar.unsafe_increment_version
  end
  unlock
  true
end