summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2018-07-24 13:59:07 +0100
committerMatthew Hodgson <matthew@matrix.org>2018-07-24 13:59:07 +0100
commite22700c3dd929f9f0953b3d2b37e503eece82b38 (patch)
tree78fa93d703e29e9b2e612ceeaebfdd1d096cda0c
parentrather than adding ll_ids, remove them from p_ids (diff)
downloadsynapse-e22700c3dd929f9f0953b3d2b37e503eece82b38.tar.xz
consider non-filter_type types as wildcards, thus missing from the state-group-cache
-rw-r--r--synapse/storage/state.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/synapse/storage/state.py b/synapse/storage/state.py
index 1413a6f910..86f2c2e6b1 100644
--- a/synapse/storage/state.py
+++ b/synapse/storage/state.py
@@ -518,7 +518,10 @@ class StateGroupWorkerStore(SQLBaseStore):
         for typ, state_key in types:
             key = (typ, state_key)
 
-            if state_key is None:
+            if (
+                state_key is None or
+                filtered_types is not None and typ not in filtered_types
+            ):
                 type_to_key[typ] = None
                 # we mark the type as missing from the cache because
                 # when the cache was populated it might have been done with a