0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-06-24 13:38:19 +02:00

Pass isolation_level to runWithConnection (#11847)

This was missed in https://github.com/matrix-org/synapse/pull/11799
This commit is contained in:
Brendan Abolivier 2022-01-27 17:45:39 +00:00 committed by GitHub
parent 57e4786e90
commit 6d482ba259
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

1
changelog.d/11847.misc Normal file
View file

@ -0,0 +1 @@
Preparation for reducing Postgres serialization errors: allow setting transaction isolation level. Contributed by Nick @ Beeper.

View file

@ -748,6 +748,7 @@ class DatabasePool:
func,
*args,
db_autocommit=db_autocommit,
isolation_level=isolation_level,
**kwargs,
)