diff options
author | Erik Johnston <erik@matrix.org> | 2017-01-10 15:15:25 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-01-10 15:15:25 +0000 |
commit | ab655dca339f8d4168079cc2b4529dc50265fc83 (patch) | |
tree | 275eb661253c052908056cfd5c424bcc4365c2e8 /synapse/storage/deviceinbox.py | |
parent | Don't disable autocommit (diff) | |
download | synapse-ab655dca339f8d4168079cc2b4529dc50265fc83.tar.xz |
Explicitly close the cursor
Diffstat (limited to 'synapse/storage/deviceinbox.py')
-rw-r--r-- | synapse/storage/deviceinbox.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/storage/deviceinbox.py b/synapse/storage/deviceinbox.py index b0ab70bafe..bde3b5cbbc 100644 --- a/synapse/storage/deviceinbox.py +++ b/synapse/storage/deviceinbox.py @@ -392,6 +392,7 @@ class DeviceInboxStore(BackgroundUpdateStore): txn.execute( "DROP INDEX IF EXISTS device_inbox_stream_id" ) + txn.close() yield self.runWithConnection(reindex_txn) |