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 10:00:29 +0100
committerErik Johnston <erik@matrix.org>2017-05-15 15:11:30 +0100
commite4435b014e50a10ad89c201d6f91b6be35a9b02f (patch)
tree3eaac5519ed529b3ad61c34bd8b82104631bfa43 /synapse/storage/state.py
parentComments (diff)
downloadsynapse-e4435b014e50a10ad89c201d6f91b6be35a9b02f.tar.xz
Update comment
Diffstat (limited to '')
-rw-r--r--synapse/storage/state.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/storage/state.py b/synapse/storage/state.py
index 5d6f7dfa28..03981f5d2b 100644
--- a/synapse/storage/state.py
+++ b/synapse/storage/state.py
@@ -229,7 +229,8 @@ 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.
+            # 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,