Skip to content
Snippets Groups Projects
Unverified Commit b2dba060 authored by Richard van der Hoff's avatar Richard van der Hoff Committed by GitHub
Browse files

Workaround for assertion errors from db_query_to_update_function (#7378)

Hopefully this is no worse than what we have on master...
parent 627b0f5f
No related branches found
No related tags found
No related merge requests found
Move catchup of replication streams logic to worker.
......@@ -176,10 +176,9 @@ def db_query_to_update_function(
rows = await query_function(from_token, upto_token, limit)
updates = [(row[0], row[1:]) for row in rows]
limited = False
if len(updates) == limit:
if len(updates) >= limit:
upto_token = updates[-1][0]
limited = True
assert len(updates) <= limit
return updates, upto_token, limited
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment