Skip to content
Snippets Groups Projects
Unverified Commit 034d4726 authored by Jason Little's avatar Jason Little Committed by GitHub
Browse files

Remove `Generator` in `_purge_unreferenced_state_groups` twice (#17815)

parent 0c429fae
No related branches found
No related tags found
No related merge requests found
Avoid lost data on some database query retries.
......@@ -804,11 +804,11 @@ class StateGroupDataStore(StateBackgroundUpdateStore, SQLBaseStore):
logger.info("[purge] removing redundant state groups")
txn.execute_batch(
"DELETE FROM state_groups_state WHERE state_group = ?",
((sg,) for sg in state_groups_to_delete),
[(sg,) for sg in state_groups_to_delete],
)
txn.execute_batch(
"DELETE FROM state_groups WHERE id = ?",
((sg,) for sg in state_groups_to_delete),
[(sg,) for sg in state_groups_to_delete],
)
@trace
......
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