summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-06-24 13:54:06 +0100
committerErik Johnston <erik@matrix.org>2016-06-24 13:54:06 +0100
commita72919b748d1c9231e3f7e8c16662c203b3f8f57 (patch)
tree21f49001eefee2f345ca81121c90158bf229366d
parentComments (diff)
downloadsynapse-a72919b748d1c9231e3f7e8c16662c203b3f8f57.tar.xz
Add get_last_event_id_ts_for_room to slave DataStore
-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 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()