summary refs log tree commit diff
path: root/changelog.d
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
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')
-rw-r--r--changelog.d/12199.misc1
1 files changed, 1 insertions, 0 deletions
diff --git a/changelog.d/12199.misc b/changelog.d/12199.misc
new file mode 100644
index 0000000000..16dec1d26d
--- /dev/null
+++ b/changelog.d/12199.misc
@@ -0,0 +1 @@
+Handle cancellation in `DatabasePool.runInteraction()`.