summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-08-12 17:22:54 +0100
committerErik Johnston <erik@matrix.org>2015-08-12 17:22:54 +0100
commit0fbed2a8fac2c04ac4f46645aa9757fdca8b7cc6 (patch)
tree87453a799a458d7fc79e8ce2ff9eb8baefc20a5a
parentExplain why we're prefilling dict with Nones (diff)
downloadsynapse-0fbed2a8fac2c04ac4f46645aa9757fdca8b7cc6.tar.xz
Comment
-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 57e334cc3e..abc5b66431 100644
--- a/synapse/storage/state.py
+++ b/synapse/storage/state.py
@@ -410,6 +410,8 @@ class StateStore(SQLBaseStore):
             for e in state_events
         }
 
+        # Now we want to update the cache with all the things we fetched
+        # from the database.
         for group, state_ids in group_state_dict.items():
             if types:
                 # We delibrately put key -> None mappings into the cache to
@@ -433,7 +435,6 @@ class StateStore(SQLBaseStore):
                 for e in evs
             })
 
-            # Update the cache
             self._state_group_cache.update(
                 cache_seq_num,
                 key=group,