summary refs log tree commit diff
path: root/synapse/replication/slave/storage/events.py
diff options
context:
space:
mode:
authorErik Johnston <erikj@jki.re>2016-09-15 14:50:09 +0100
committerGitHub <noreply@github.com>2016-09-15 14:50:09 +0100
commit1535f21eb50b3ccb0e06c4e41268942cb516d535 (patch)
treea80740335d559f06a7568aa633b7ac78ac2e0e00 /synapse/replication/slave/storage/events.py
parentMerge pull request #1122 from matrix-org/erikj/public_room_cache (diff)
parentUse stream_change cache to make get_forward_extremeties_for_room cache more e... (diff)
downloadsynapse-1535f21eb50b3ccb0e06c4e41268942cb516d535.tar.xz
Merge pull request #1123 from matrix-org/erikj/public_room_cache
Use stream_change cache to make get_forward_extremeties_for_room cache more effective
Diffstat (limited to 'synapse/replication/slave/storage/events.py')
-rw-r--r--synapse/replication/slave/storage/events.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/synapse/replication/slave/storage/events.py b/synapse/replication/slave/storage/events.py
index 842ced02d6..cc32c66792 100644
--- a/synapse/replication/slave/storage/events.py
+++ b/synapse/replication/slave/storage/events.py
@@ -173,7 +173,10 @@ class SlavedEventStore(BaseSlavedStore):
     get_room_max_stream_ordering = DataStore.get_room_max_stream_ordering.__func__
 
     get_forward_extremeties_for_room = (
-        EventFederationStore.__dict__["get_forward_extremeties_for_room"]
+        DataStore.get_forward_extremeties_for_room.__func__
+    )
+    _get_forward_extremeties_for_room = (
+        EventFederationStore.__dict__["_get_forward_extremeties_for_room"]
     )
 
     def stream_positions(self):