summary refs log tree commit diff
path: root/synapse/replication/slave
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-05-25 17:08:41 +0100
committerErik Johnston <erik@matrix.org>2017-05-25 17:24:44 +0100
commitdfbda5e0250adfa762f5491c7efb2666866db034 (patch)
tree0004c9e9e0bb8d7e8269eec3ca366731bd5a4390 /synapse/replication/slave
parentDon't return weird prev_group (diff)
downloadsynapse-dfbda5e0250adfa762f5491c7efb2666866db034.tar.xz
Faster cache for get_joined_hosts
Diffstat (limited to 'synapse/replication/slave')
-rw-r--r--synapse/replication/slave/storage/events.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/replication/slave/storage/events.py b/synapse/replication/slave/storage/events.py
index fcaf58b93b..6cd3a843df 100644
--- a/synapse/replication/slave/storage/events.py
+++ b/synapse/replication/slave/storage/events.py
@@ -108,6 +108,8 @@ class SlavedEventStore(BaseSlavedStore):
     get_current_state_ids = (
         StateStore.__dict__["get_current_state_ids"]
     )
+    get_state_group_delta = DataStore.get_state_group_delta.__func__
+    _get_joined_hosts_cache = RoomMemberStore.__dict__["_get_joined_hosts_cache"]
     has_room_changed_since = DataStore.has_room_changed_since.__func__
 
     get_unread_push_actions_for_user_in_range_for_http = (