summary refs log tree commit diff
path: root/synapse/replication
diff options
context:
space:
mode:
authorErik Johnston <erikj@jki.re>2019-02-22 15:04:57 +0000
committerGitHub <noreply@github.com>2019-02-22 15:04:57 +0000
commit9982c71515f55cefc5be5adc29375eb6d0b8daf8 (patch)
treeb3f2c6f2296cbb7ed5e96654342693e7865789ea /synapse/replication
parentDebian: fix overwriting of config settings on upgrade (#4696) (diff)
parentNewsfile (diff)
downloadsynapse-9982c71515f55cefc5be5adc29375eb6d0b8daf8.tar.xz
Merge pull request #4715 from matrix-org/erikj/fix_state_invalidation
Fix state cache invalidation on workers
Diffstat (limited to '')
-rw-r--r--synapse/replication/slave/storage/_base.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/synapse/replication/slave/storage/_base.py b/synapse/replication/slave/storage/_base.py

index 1353a32d00..817d1f67f9 100644 --- a/synapse/replication/slave/storage/_base.py +++ b/synapse/replication/slave/storage/_base.py
@@ -59,12 +59,7 @@ class BaseSlavedStore(SQLBaseStore): members_changed = set(row.keys[1:]) self._invalidate_state_caches(room_id, members_changed) else: - try: - getattr(self, row.cache_func).invalidate(tuple(row.keys)) - except AttributeError: - # We probably haven't pulled in the cache in this worker, - # which is fine. - pass + self._attempt_to_invalidate_cache(row.cache_func, tuple(row.keys)) def _invalidate_cache_and_stream(self, txn, cache_func, keys): txn.call_after(cache_func.invalidate, keys)