diff options
author | Erik Johnston <erik@matrix.org> | 2020-01-15 14:59:33 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-15 14:59:33 +0000 |
commit | 28c98e51ffa166bd717646b0b34228e59f253485 (patch) | |
tree | 09ba8c8f27412fb3166b6d5d5cb985870424f856 /synapse/replication | |
parent | Process EDUs in parallel with PDUs. (#6697) (diff) | |
download | synapse-28c98e51ffa166bd717646b0b34228e59f253485.tar.xz |
Add `local_current_membership` table (#6655)
Currently we rely on `current_state_events` to figure out what rooms a user was in and their last membership event in there. However, if the server leaves the room then the table may be cleaned up and that information is lost. So lets add a table that separately holds that information.
Diffstat (limited to 'synapse/replication')
-rw-r--r-- | synapse/replication/slave/storage/events.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/replication/slave/storage/events.py b/synapse/replication/slave/storage/events.py index 29f35b9915..3aa6cb8b96 100644 --- a/synapse/replication/slave/storage/events.py +++ b/synapse/replication/slave/storage/events.py @@ -152,7 +152,7 @@ class SlavedEventStore( if etype == EventTypes.Member: self._membership_stream_cache.entity_has_changed(state_key, stream_ordering) - self.get_invited_rooms_for_user.invalidate((state_key,)) + self.get_invited_rooms_for_local_user.invalidate((state_key,)) if relates_to: self.get_relations_for_event.invalidate_many((relates_to,)) |