summary refs log tree commit diff
path: root/synapse/storage/user_directory.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-05-31 16:34:40 +0100
committerErik Johnston <erik@matrix.org>2017-05-31 16:34:40 +0100
commitf0910617111fe81b79777a2c597b1e4240d61a9a (patch)
tree0288425f6fe85f26b5fdcb6b8656fe4b224b214e /synapse/storage/user_directory.py
parentFix typo (diff)
downloadsynapse-f0910617111fe81b79777a2c597b1e4240d61a9a.tar.xz
Fix tests
Diffstat (limited to '')
-rw-r--r--synapse/storage/user_directory.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/storage/user_directory.py b/synapse/storage/user_directory.py
index 9137fc24ea..348064436f 100644
--- a/synapse/storage/user_directory.py
+++ b/synapse/storage/user_directory.py
@@ -221,6 +221,7 @@ class UserDirectoryStore(SQLBaseStore):
             txn.execute(sql, (prev_stream_id,))
 
             total = 0
+            max_stream_id = prev_stream_id
             for max_stream_id, count in txn:
                 total += count
                 if total > 50: