aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailbox
diff options
context:
space:
mode:
authorJohn Hawthorn <john@hawthorn.email>2019-01-29 10:05:30 -0800
committerJohn Hawthorn <john@hawthorn.email>2019-01-30 13:25:09 -0800
commitab952b19496c9569059f2dbb2b1dacaf44e618a8 (patch)
tree0973339cdadd0bbbb6c8395c665f0f2971575b3a /actionmailbox
parent535a8b995700a5875a898691b19b88969c22d264 (diff)
downloadrails-ab952b19496c9569059f2dbb2b1dacaf44e618a8.tar.gz
rails-ab952b19496c9569059f2dbb2b1dacaf44e618a8.tar.bz2
rails-ab952b19496c9569059f2dbb2b1dacaf44e618a8.zip
Write update_last_write_timestamp after request
We need to update using the timestamp from the end of the request, not the start. For example, if a request spends 5+ seconds writing, we still want to wait another 5 seconds for replication lag. Since we now run the update after we yield, we need to use ensure to make sure we update the timestamp even if there is an exception.
Diffstat (limited to 'actionmailbox')
0 files changed, 0 insertions, 0 deletions