MatrixSynapse/synapse/storage
Nick Mills-Barrett db1cfe9c80
Update all stream IDs after processing replication rows (#14723)
This creates a new store method, `process_replication_position` that
is called after `process_replication_rows`. By moving stream ID advances
here this guarantees any relevant cache invalidations will have been
applied before the stream is advanced.

This avoids race conditions where Python switches between threads mid
way through processing the `process_replication_rows` method where stream
IDs may be advanced before caches are invalidated due to class resolution
ordering.

See this comment/issue for further discussion:
	https://github.com/matrix-org/synapse/issues/14158#issuecomment-1344048703
2023-01-04 11:49:26 +00:00
..
controllers Move `StateFilter` to `synapse.types` (#14668) 2022-12-12 16:19:30 +00:00
databases Update all stream IDs after processing replication rows (#14723) 2023-01-04 11:49:26 +00:00
engines Enable `--warn-redundant-casts` option in mypy (#14671) 2022-12-12 21:25:07 +00:00
schema Faster remote room joins: stream the un-partial-stating of events over replication. [rei:frrj/streams/unpsr] (#14545) 2022-12-14 14:47:11 +00:00
util Reintroduce #14376, with bugfix for monoliths (#14468) 2022-11-16 22:16:46 +00:00
__init__.py
_base.py Update all stream IDs after processing replication rows (#14723) 2023-01-04 11:49:26 +00:00
background_updates.py Handle half-created indices in receipts index background update (#14650) 2022-12-09 23:02:11 +00:00
database.py Add experimental support for MSC3391: deleting account data (#14714) 2023-01-01 03:40:46 +00:00
keys.py
prepare_database.py Snapshot schema 72 (#13873) 2022-09-26 18:28:32 +01:00
push_rule.py
roommember.py
types.py