mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 00:04:54 -04:00
Add checks for postgres sequence consistency (#8402)
This commit is contained in:
parent
5e3ca12b15
commit
bd380d942f
8 changed files with 160 additions and 6 deletions
|
@ -99,6 +99,9 @@ class StateGroupDataStore(StateBackgroundUpdateStore, SQLBaseStore):
|
|||
self._state_group_seq_gen = build_sequence_generator(
|
||||
self.database_engine, get_max_state_group_txn, "state_group_id_seq"
|
||||
)
|
||||
self._state_group_seq_gen.check_consistency(
|
||||
db_conn, table="state_groups", id_column="id"
|
||||
)
|
||||
|
||||
@cached(max_entries=10000, iterable=True)
|
||||
async def get_state_group_delta(self, state_group):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue