summary refs log tree commit diff
path: root/synapse/storage/state.py
diff options
context:
space:
mode:
authorErik Johnston <erikj@jki.re>2017-05-04 15:09:25 +0100
committerGitHub <noreply@github.com>2017-05-04 15:09:25 +0100
commitb25db11d08e9827a2d720c6ff7c4926eebe9dc63 (patch)
treedb3b6aa0e2224a07c206438e4365c4f9bbbe482a /synapse/storage/state.py
parentMerge pull request #2183 from matrix-org/luke/username-availability (diff)
parentRevert "Prefill state caches" (diff)
downloadsynapse-b25db11d08e9827a2d720c6ff7c4926eebe9dc63.tar.xz
Merge pull request #2186 from matrix-org/revert-2175-erikj/prefill_state
Revert "Prefill state caches"
Diffstat (limited to 'synapse/storage/state.py')
-rw-r--r--synapse/storage/state.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/synapse/storage/state.py b/synapse/storage/state.py
index 03981f5d2b..a16afa8df5 100644
--- a/synapse/storage/state.py
+++ b/synapse/storage/state.py
@@ -227,18 +227,6 @@ class StateStore(SQLBaseStore):
                     ],
                 )
 
-            # Prefill the state group cache with this group.
-            # It's fine to use the sequence like this as the state group map
-            # is immutable. (If the map wasn't immutable then this prefill could
-            # race with another update)
-            txn.call_after(
-                self._state_group_cache.update,
-                self._state_group_cache.sequence,
-                key=context.state_group,
-                value=context.current_state_ids,
-                full=True,
-            )
-
         self._simple_insert_many_txn(
             txn,
             table="event_to_state_groups",