Fix profile repl

pull/3166/head
David Baker 2018-05-01 14:27:14 +01:00
parent d7fad867fa
commit 105709bf32
1 changed files with 1 additions and 0 deletions

View File

@ -81,6 +81,7 @@ class ProfileHandler(BaseHandler):
"""
host_batches = yield self.store.get_replication_hosts()
latest_batch = yield self.store.get_latest_profile_replication_batch_number()
if latest_batch is None latest_batch = -1
for repl_host in self.hs.config.replicate_user_profiles_to:
if repl_host not in host_batches:
host_batches[repl_host] = -1