Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Include any state groups from the second purge txn
Browse files Browse the repository at this point in the history
  • Loading branch information
Fizzadar committed Jul 18, 2022
1 parent 110ad87 commit f895ace
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions synapse/storage/databases/main/purge_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,10 +332,12 @@ async def purge_room(self, room_id: str) -> List[int]:
isolation_level=IsolationLevel.READ_COMMITTED,
)

await self.db_pool.runInteraction(
"purge_room",
self._purge_room_txn,
room_id=room_id,
state_groups_to_delete.extend(
await self.db_pool.runInteraction(
"purge_room",
self._purge_room_txn,
room_id=room_id,
),
)

return state_groups_to_delete
Expand Down

0 comments on commit f895ace

Please sign in to comment.