From: Tom Hughes Date: Mon, 28 Nov 2016 20:31:04 +0000 (+0000) Subject: Clone objects before saving in case of a retry X-Git-Tag: live~3692 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/e5834016fd30a975d162478469d030fc168d98fe?hp=e5834016fd30a975d162478469d030fc168d98fe;ds=sidebyside Clone objects before saving in case of a retry 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. ---