From a72919b748d1c9231e3f7e8c16662c203b3f8f57 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Fri, 24 Jun 2016 13:54:06 +0100 Subject: [PATCH] Add get_last_event_id_ts_for_room to slave DataStore --- synapse/replication/slave/storage/events.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/synapse/replication/slave/storage/events.py b/synapse/replication/slave/storage/events.py index 877c68508c..03231550b7 100644 --- a/synapse/replication/slave/storage/events.py +++ b/synapse/replication/slave/storage/events.py @@ -144,6 +144,8 @@ class SlavedEventStore(BaseSlavedStore): _get_events_around_txn = DataStore._get_events_around_txn.__func__ _get_some_state_from_cache = DataStore._get_some_state_from_cache.__func__ + get_last_event_id_ts_for_room = DataStore.get_last_event_id_ts_for_room.__func__ + def stream_positions(self): result = super(SlavedEventStore, self).stream_positions() result["events"] = self._stream_id_gen.get_current_token()