summary refs log tree commit diff
path: root/synapse/storage/data_stores
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2020-01-09 17:21:30 +0000
committerRichard van der Hoff <richard@matrix.org>2020-01-09 18:05:50 +0000
commite97d1cf0014668b9d4883d4175b783088444b24b (patch)
treef490b673ca4de0c7bd3ed53081f7f92a84394de2 /synapse/storage/data_stores
parentAllow admin users to create or modify users without a shared secret (#6495) (diff)
downloadsynapse-e97d1cf0014668b9d4883d4175b783088444b24b.tar.xz
Modify check_database to take a connection rather than a cursor
We might not need the cursor at all.
Diffstat (limited to 'synapse/storage/data_stores')
-rw-r--r--synapse/storage/data_stores/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/data_stores/__init__.py b/synapse/storage/data_stores/__init__.py
index 092e803799..e1d03429ca 100644
--- a/synapse/storage/data_stores/__init__.py
+++ b/synapse/storage/data_stores/__init__.py
@@ -47,7 +47,7 @@ class DataStores(object):
             with make_conn(database_config, engine) as db_conn:
                 logger.info("Preparing database %r...", db_name)
 
-                engine.check_database(db_conn.cursor())
+                engine.check_database(db_conn)
                 prepare_database(
                     db_conn, engine, hs.config, data_stores=database_config.data_stores,
                 )