summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-03-06 17:39:32 +0000
committerErik Johnston <erik@matrix.org>2019-03-06 17:39:32 +0000
commitface0c5b3c8ed6d0f29f7eaa3a2f9fd19eb99540 (patch)
tree11fd17679b5ae909483c39244c4354f66a479bbf
parentMerge pull request #4792 from matrix-org/anoa/replication_tokens (diff)
downloadsynapse-face0c5b3c8ed6d0f29f7eaa3a2f9fd19eb99540.tar.xz
Prefill client IPs cache on workers
Diffstat (limited to '')
-rw-r--r--synapse/replication/slave/storage/client_ips.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/replication/slave/storage/client_ips.py b/synapse/replication/slave/storage/client_ips.py
index 60641f1a49..5b8521c770 100644
--- a/synapse/replication/slave/storage/client_ips.py
+++ b/synapse/replication/slave/storage/client_ips.py
@@ -43,6 +43,8 @@ class SlavedClientIpStore(BaseSlavedStore):
         if last_seen is not None and (now - last_seen) < LAST_SEEN_GRANULARITY:
             return
 
+        self.client_ip_last_seen.prefill(key, now)
+
         self.hs.get_tcp_replication().send_user_ip(
             user_id, access_token, ip, user_agent, device_id, now
         )