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

Include the room ID in more purge-room log lines. #15222

Merged
merged 6 commits into from
Mar 8, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix typos.
Co-authored-by: Sean Quah <[email protected]>
  • Loading branch information
clokep and squahtx authored Mar 8, 2023
commit 9e8d240f76315c6c8a23e7371744456da491ea21
4 changes: 2 additions & 2 deletions synapse/storage/databases/main/purge_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,15 +325,15 @@ async def purge_room(self, room_id: str) -> List[int]:
# We then run the same purge a second time without this isolation level to
# purge any of those rows which were added during the first.

logger.info("[purge] Starting initial main purge of [1/2]]")
logger.info("[purge] Starting initial main purge of [1/2]")
state_groups_to_delete = await self.db_pool.runInteraction(
"purge_room",
self._purge_room_txn,
room_id=room_id,
isolation_level=IsolationLevel.READ_COMMITTED,
)

logger.info("[purge] Starting secondary main purge of [2/2]]")
logger.info("[purge] Starting secondary main purge of [2/2]")
state_groups_to_delete.extend(
await self.db_pool.runInteraction(
"purge_room",
Expand Down