Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Commit/rollback happens automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Oct 5, 2020
1 parent 4486011 commit ee6fea7
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions synapse/storage/util/id_generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,11 +583,6 @@ def _update_stream_positions_table_conn(self, conn: LoggingDatabaseConnection):

with conn.cursor(txn_name="MultiWriterIdGenerator._update_table") as cur:
self._update_stream_positions_table_txn(cur)

conn.commit()
except Exception:
conn.rollback()
raise
finally:
conn.conn.set_session(autocommit=False) # type: ignore

Expand Down

0 comments on commit ee6fea7

Please sign in to comment.