diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2020-07-16 13:54:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-16 13:54:45 +0100 |
commit | a827838706b1b0c36afb1f6d6a44ba69751b2ec6 (patch) | |
tree | 5478da2bd4d2c7ed3d42c0450d2f6dad07da36cf /synapse/storage/engines/postgres.py | |
parent | Add some tiny type annotations (#7870) (diff) | |
parent | changelog (diff) | |
download | synapse-a827838706b1b0c36afb1f6d6a44ba69751b2ec6.tar.xz |
Merge pull request #7866 from matrix-org/rav/fix_guest_user_id
Fix guest user registration with lots of client readers
Diffstat (limited to 'synapse/storage/engines/postgres.py')
-rw-r--r-- | synapse/storage/engines/postgres.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/synapse/storage/engines/postgres.py b/synapse/storage/engines/postgres.py index a31588080d..ff39281f85 100644 --- a/synapse/storage/engines/postgres.py +++ b/synapse/storage/engines/postgres.py @@ -154,12 +154,6 @@ class PostgresEngine(BaseDatabaseEngine): def lock_table(self, txn, table): txn.execute("LOCK TABLE %s in EXCLUSIVE MODE" % (table,)) - def get_next_state_group_id(self, txn): - """Returns an int that can be used as a new state_group ID - """ - txn.execute("SELECT nextval('state_group_id_seq')") - return txn.fetchone()[0] - @property def server_version(self): """Returns a string giving the server version. For example: '8.1.5' |