This commit is contained in:
Brendan Abolivier 2019-10-31 23:12:15 +00:00
parent 1586f2c7e7
commit 49008e674f
No known key found for this signature in database
GPG Key ID: 1E015C145F1916CD
1 changed files with 2 additions and 0 deletions

View File

@ -548,6 +548,8 @@ class EventsBackgroundUpdatesStore(BackgroundUpdateStore):
# We want to return true (to end the background update) only when # We want to return true (to end the background update) only when
# the query returned with less rows than we asked for. # 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 return len(rows) != batch_size
end = yield self.runInteraction( end = yield self.runInteraction(