summary refs log tree commit diff
path: root/changelog.d/12113.bugfix
diff options
context:
space:
mode:
authorSean Quah <8349537+squahtx@users.noreply.github.com>2022-03-16 15:07:41 +0000
committerGitHub <noreply@github.com>2022-03-16 15:07:41 +0000
commit61210567405b1ac7efaa23d5513cc0b443da0a3a (patch)
treea097f4702f9e570cbc8ee3ff21ff408b69f2e4e1 /changelog.d/12113.bugfix
parentAdd a relations handler to avoid duplication. (#12227) (diff)
downloadsynapse-61210567405b1ac7efaa23d5513cc0b443da0a3a.tar.xz
Handle cancellation in `DatabasePool.runInteraction()` (#12199)
To handle cancellation, we ensure that `after_callback`s and
`exception_callback`s are always run, since the transaction will
complete on another thread regardless of cancellation.

We also wait until everything is done before releasing the
`CancelledError`, so that logging contexts won't get used after they
have been finished.

Signed-off-by: Sean Quah <seanq@element.io>
Diffstat (limited to 'changelog.d/12113.bugfix')
0 files changed, 0 insertions, 0 deletions