summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorCarl Meyer <carl@oddbird.net>2012-09-19 11:15:12 -0600
committerCarl Meyer <carl@oddbird.net>2012-09-19 11:15:12 -0600
commit4e9a74b81df1c7aaea2f90a3a4911920e134b275 (patch)
treec13560e59eb490a936c854cc92b83627d2477b89 /docs/ref
parent901af865505310a70dd02ea5b3becbf45819b652 (diff)
Revert "Fixed #16865 -- Made get_or_create use read database for initial get query."
Thanks to Jeremy Dunck for pointing out the problem with this change. If in a single transaction, the master deletes a record and then get_or_creates a similar record, under the new behavior the get_or_create would find the record in the slave db and fail to re-create it, leaving the record nonexistent, which violates the contract of get_or_create that the record should always exist afterwards. We need to do everything against the master here in order to ensure correctness. This reverts commit 901af865505310a70dd02ea5b3becbf45819b652.
Diffstat (limited to 'docs/ref')
0 files changed, 0 insertions, 0 deletions