diff options
author | Erik Johnston <erik@matrix.org> | 2016-08-15 10:21:25 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-08-15 11:15:17 +0100 |
commit | 4d70d1f80ea688304abdcbbf3ee01f6ab932abc7 (patch) | |
tree | b6389f1bf99d1266fd555c255caa34bed8aaae43 /synapse/storage/__init__.py | |
parent | Always run txn.after_callbacks (diff) | |
download | synapse-4d70d1f80ea688304abdcbbf3ee01f6ab932abc7.tar.xz |
Add some invalidations to a cache_stream
Diffstat (limited to 'synapse/storage/__init__.py')
-rw-r--r-- | synapse/storage/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/storage/__init__.py b/synapse/storage/__init__.py index 73fb334dd6..a0c029a2fc 100644 --- a/synapse/storage/__init__.py +++ b/synapse/storage/__init__.py @@ -122,6 +122,9 @@ class DataStore(RoomMemberStore, RoomStore, db_conn, "pushers", "id", extra_tables=[("deleted_pushers", "stream_id")], ) + self._cache_id_gen = StreamIdGenerator( + db_conn, "cache_stream", "stream_id", + ) events_max = self._stream_id_gen.get_current_token() event_cache_prefill, min_event_val = self._get_cache_dict( |