diff options
author | Brendan Abolivier <babolivier@matrix.org> | 2022-01-27 17:45:39 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-27 17:45:39 +0000 |
commit | 6d482ba259a55947678390c06b24a7ba91f0ebab (patch) | |
tree | f1ad901cf6484071237937b4d20f13968071dc36 | |
parent | Create singletons for `StateFilter.{all,none}()` (#11836) (diff) | |
download | synapse-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.misc | 1 | ||||
-rw-r--r-- | synapse/storage/database.py | 1 |
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, ) |