summary refs log tree commit diff
path: root/synapse/replication
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-09-15 14:27:15 +0100
committerErik Johnston <erik@matrix.org>2016-09-15 14:28:13 +0100
commitcb3edec6af55efb126f5e7ee66c4d895ef35a66e (patch)
treea80740335d559f06a7568aa633b7ac78ac2e0e00 /synapse/replication
parentAdd cache to get_forward_extremeties_for_room (diff)
downloadsynapse-cb3edec6af55efb126f5e7ee66c4d895ef35a66e.tar.xz
Use stream_change cache to make get_forward_extremeties_for_room cache more effective
Diffstat (limited to 'synapse/replication')
-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):