MatrixSynapse/synapse/storage
Sean Quah 373c485d8c
Handle half-created indices in receipts index background update (#14650)
When Synapse is terminated while running the background update to create
the `receipts_graph` or `receipts_linearized` indexes, the indexes may
be successfully created (or marked as invalid on postgres) while the
background update remains unfinished. When Synapse next starts up, the
background update will fail because the index already exists, or exists
but is invalid on postgres.

Use the existing code to create indices in background updates, since it
handles these edge cases.

Signed-off-by: Sean Quah <seanq@matrix.org>
2022-12-09 23:02:11 +00:00
..
controllers
databases Handle half-created indices in receipts index background update (#14650) 2022-12-09 23:02:11 +00:00
engines
schema Rebuild the user directory and stats tables. (#14643) 2022-12-08 11:40:20 -05:00
util
__init__.py
_base.py
background_updates.py Handle half-created indices in receipts index background update (#14650) 2022-12-09 23:02:11 +00:00
database.py
keys.py
prepare_database.py
push_rule.py
roommember.py
state.py
types.py