summary refs log tree commit diff
path: root/synapse/storage/state.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-05-03 09:56:05 +0100
committerErik Johnston <erik@matrix.org>2017-05-15 15:11:30 +0100
commit871605f4e20cce3f093b2eae0f3d2ad7fb43a640 (patch)
tree8dff3de14ab9e22ba1fe52725cac7bfafac10a73 /synapse/storage/state.py
parentAdd more granular event send metrics (diff)
downloadsynapse-871605f4e20cce3f093b2eae0f3d2ad7fb43a640.tar.xz
Comments
Diffstat (limited to '')
-rw-r--r--synapse/storage/state.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/storage/state.py b/synapse/storage/state.py
index 1e1ce87e0e..5d6f7dfa28 100644
--- a/synapse/storage/state.py
+++ b/synapse/storage/state.py
@@ -227,6 +227,9 @@ 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.
             txn.call_after(
                 self._state_group_cache.update,
                 self._state_group_cache.sequence,