]> cat aescling's git repositories - mastodon.git/commit
Fix database serialization failure returning HTTP 500 (#16101)
authorEugen Rochko <eugen@zeonfederated.com>
Wed, 5 May 2021 17:44:35 +0000 (19:44 +0200)
committerGitHub <noreply@github.com>
Wed, 5 May 2021 17:44:35 +0000 (19:44 +0200)
commit059df83d1dcabb27d2e638b4835791bd570ec779
tree98605f362ad1afa18f69c916999c05dc2f662f35
parent036556d3509fac5fa487a0d5ff3cf95767e8d84f
Fix database serialization failure returning HTTP 500 (#16101)

Database serialization failure occurs when a read-replica is used
and a query takes long enough that rows on the primary database
become unavailable. It should return HTTP 503 as it is temporary.

Re-order rescue definitions according to their status codes
app/controllers/application_controller.rb