summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-02-14 12:23:59 +0000
committerRichard van der Hoff <richard@matrix.org>2018-06-22 15:58:15 +0100
commit7a1406d144ca32b83a050e947f423cda8e964cd6 (patch)
tree185d00699f870883b013ed461e522034f5d977d4
parentMove event sending to end in shutdown room admin api (diff)
downloadsynapse-7a1406d144ca32b83a050e947f423cda8e964cd6.tar.xz
Prefill client_ip_last_seen in replication
-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 352c9a2aa8..fedf7a3188 100644 --- a/synapse/replication/slave/storage/client_ips.py +++ b/synapse/replication/slave/storage/client_ips.py
@@ -42,6 +42,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 )