mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 17:34:50 -04:00
Fix iteration in _remove_deleted_email_pushers background job. (#10734)
This commit is contained in:
parent
78e590d473
commit
3693ea61f5
3 changed files with 47 additions and 1 deletions
|
@ -430,10 +430,11 @@ class PusherWorkerStore(SQLBaseStore):
|
|||
"""
|
||||
|
||||
txn.execute(sql, (last_pusher, batch_size))
|
||||
rows = txn.fetchall()
|
||||
|
||||
last = None
|
||||
num_deleted = 0
|
||||
for row in txn:
|
||||
for row in rows:
|
||||
last = row[0]
|
||||
num_deleted += 1
|
||||
self.db_pool.simple_delete_txn(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue