mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-03-06 08:25:50 -05:00
Fix exit condition
This commit is contained in:
parent
1c1268245d
commit
1586f2c7e7
@ -546,7 +546,9 @@ class EventsBackgroundUpdatesStore(BackgroundUpdateStore):
|
|||||||
txn, "event_store_labels", {"last_event_id": event_id}
|
txn, "event_store_labels", {"last_event_id": event_id}
|
||||||
)
|
)
|
||||||
|
|
||||||
return len(rows) == batch_size
|
# We want to return true (to end the background update) only when
|
||||||
|
# the query returned with less rows than we asked for.
|
||||||
|
return len(rows) != batch_size
|
||||||
|
|
||||||
end = yield self.runInteraction(
|
end = yield self.runInteraction(
|
||||||
desc="event_store_labels", func=_event_store_labels_txn
|
desc="event_store_labels", func=_event_store_labels_txn
|
||||||
|
Loading…
x
Reference in New Issue
Block a user