mirror of
https://github.com/element-hq/synapse
synced 2024-08-20 17:50:21 +00:00
Don't disable autocommit
This commit is contained in:
parent
caddadfc5a
commit
5a32e9273e
1 changed files with 4 additions and 8 deletions
|
@ -388,14 +388,10 @@ class DeviceInboxStore(BackgroundUpdateStore):
|
|||
@defer.inlineCallbacks
|
||||
def _background_drop_index_device_inbox(self, progress, batch_size):
|
||||
def reindex_txn(conn):
|
||||
conn.set_session(autocommit=True)
|
||||
try:
|
||||
txn = conn.cursor()
|
||||
txn.execute(
|
||||
"DROP INDEX IF EXISTS device_inbox_stream_id"
|
||||
)
|
||||
finally:
|
||||
conn.set_session(autocommit=False)
|
||||
|
||||
yield self.runWithConnection(reindex_txn)
|
||||
|
||||
|
|
Loading…
Reference in a new issue