[openstreetmap/openstreetmap-website] Clone objects before saving in case of a retry (#1384)

Tom Hughes notifications at github.com
Mon Nov 28 22:28:26 UTC 2016


If a deadlock occurs then the transaction will be retried so we
need to make sure that the object will still be dirty so that it
will be saved again during the retry but that the version won't
be incremented a second time.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/1384

-- Commit Summary --

  * Clone objects before saving in case of a retry

-- File Changes --

    M app/models/node.rb (10)
    M app/models/relation.rb (12)
    M app/models/way.rb (9)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/1384.patch
https://github.com/openstreetmap/openstreetmap-website/pull/1384.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/1384
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20161128/6ee95b29/attachment-0001.html>


More information about the rails-dev mailing list