summary refs log tree commit diff
diff options
context:
space:
mode:
-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,
                 )