mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-18 00:43:30 +03:00
Remove Generator
in _quarantine_media_txn()
(#17813)
This commit is contained in:
parent
3ae80b0de4
commit
7987d5e638
2 changed files with 2 additions and 1 deletions
1
changelog.d/17813.bugfix
Normal file
1
changelog.d/17813.bugfix
Normal file
|
@ -0,0 +1 @@
|
|||
Avoid lost data on some database query retries.
|
|
@ -1175,7 +1175,7 @@ class RoomWorkerStore(CacheInvalidationWorkerStore):
|
|||
SET quarantined_by = ?
|
||||
WHERE media_origin = ? AND media_id = ?
|
||||
""",
|
||||
((quarantined_by, origin, media_id) for origin, media_id in remote_mxcs),
|
||||
[(quarantined_by, origin, media_id) for origin, media_id in remote_mxcs],
|
||||
)
|
||||
total_media_quarantined += txn.rowcount if txn.rowcount > 0 else 0
|
||||
|
||||
|
|
Loading…
Reference in a new issue