mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-21 17:15:38 +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 = ?
|
SET quarantined_by = ?
|
||||||
WHERE media_origin = ? AND media_id = ?
|
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
|
total_media_quarantined += txn.rowcount if txn.rowcount > 0 else 0
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue