summary refs log tree commit diff
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2022-01-27 17:45:39 +0000
committerGitHub <noreply@github.com>2022-01-27 17:45:39 +0000
commit6d482ba259a55947678390c06b24a7ba91f0ebab (patch)
treef1ad901cf6484071237937b4d20f13968071dc36
parentCreate singletons for `StateFilter.{all,none}()` (#11836) (diff)
downloadsynapse-6d482ba259a55947678390c06b24a7ba91f0ebab.tar.xz
Pass `isolation_level` to `runWithConnection` (#11847)
This was missed in https://github.com/matrix-org/synapse/pull/11799
-rw-r--r--changelog.d/11847.misc1
-rw-r--r--synapse/storage/database.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/changelog.d/11847.misc b/changelog.d/11847.misc
new file mode 100644
index 0000000000..5c3b2bcaf4
--- /dev/null
+++ b/changelog.d/11847.misc
@@ -0,0 +1 @@
+Preparation for reducing Postgres serialization errors: allow setting transaction isolation level. Contributed by Nick @ Beeper.
diff --git a/synapse/storage/database.py b/synapse/storage/database.py
index 7455326ed3..99802228c9 100644
--- a/synapse/storage/database.py
+++ b/synapse/storage/database.py
@@ -748,6 +748,7 @@ class DatabasePool:
                     func,
                     *args,
                     db_autocommit=db_autocommit,
+                    isolation_level=isolation_level,
                     **kwargs,
                 )