]> git.openstreetmap.org Git - rails.git/commitdiff
Clone objects before saving in case of a retry
authorTom Hughes <tom@compton.nu>
Mon, 28 Nov 2016 20:31:04 +0000 (20:31 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 28 Nov 2016 20:31:04 +0000 (20:31 +0000)
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.


No differences found