summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-07-23 17:43:01 +0100
committerErik Johnston <erik@matrix.org>2018-07-23 17:43:01 +0100
commit8b9f164fff6cf821ff5bc702f3660c0f0eb320e7 (patch)
tree0ee4c637318472f350e0f951ecac96ff1646b108 /synapse/storage
parentNewsfile (diff)
downloadsynapse-8b9f164fff6cf821ff5bc702f3660c0f0eb320e7.tar.xz
Comments
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/events.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/storage/events.py b/synapse/storage/events.py
index dc0b3c2eba..c2910094d0 100644
--- a/synapse/storage/events.py
+++ b/synapse/storage/events.py
@@ -549,6 +549,9 @@ class EventsStore(EventsWorkerStore):
             if ctx.state_group in state_groups_map:
                 continue
 
+            # We're only interested in pulling out state that has already
+            # been cached in the context. We'll pull stuff out of the DB later
+            # if necessary.
             current_state_ids = ctx.get_cached_current_state_ids()
             if current_state_ids is not None:
                 state_groups_map[ctx.state_group] = current_state_ids