summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2019-10-31 23:12:15 +0000
committerBrendan Abolivier <babolivier@matrix.org>2019-11-04 09:56:11 +0000
commit49008e674f6c5463168e970349ce84c488407834 (patch)
tree31a6a78801856c860a3dad5fd0f1755f26ae9357 /synapse
parentFix exit condition (diff)
downloadsynapse-49008e674f6c5463168e970349ce84c488407834.tar.xz
TODO
Diffstat (limited to 'synapse')
-rw-r--r--synapse/storage/data_stores/main/events_bg_updates.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/storage/data_stores/main/events_bg_updates.py b/synapse/storage/data_stores/main/events_bg_updates.py
index 72d600c51b..b7b390485b 100644
--- a/synapse/storage/data_stores/main/events_bg_updates.py
+++ b/synapse/storage/data_stores/main/events_bg_updates.py
@@ -548,6 +548,8 @@ class EventsBackgroundUpdatesStore(BackgroundUpdateStore):
 
             # We want to return true (to end the background update) only when
             # the query returned with less rows than we asked for.
+            # TODO: this currently doesn't work, i.e. it only runs once whereas
+            #       its opposite does the whole thing, investigate.
             return len(rows) != batch_size
 
         end = yield self.runInteraction(