matrix-org / synapse

Synapse: Matrix homeserver written in Python/Twisted.
https://matrix-org.github.io/synapse
Apache License 2.0
11.83k stars 2.13k forks source link

Avoid sending massive replication updates when purging a room. #16510

Closed clokep closed 1 year ago

clokep commented 1 year ago

When purging a room it doesn't make sense to send every individual update, we can combine them into a "all state is invalid for this room".

As it is hard to mark the room as "being purged" we do this whenever there's many state updates in the room. This should also cover any other unforeseen replication updates with massive amounts of state.