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

Log when we delete room in bg update #6816

Merged
merged 2 commits into from
Jan 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions changelog.d/6816.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add background update to clean out left rooms from current state.
2 changes: 2 additions & 0 deletions synapse/storage/data_stores/main/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,8 @@ def _background_remove_left_rooms_txn(txn):

left_rooms = set(room_ids) - joined_room_ids

logger.info("Deleting current state left rooms: %r", left_rooms)

# First we get all users that we still think were joined to the
# room. This is so that we can mark those device lists as
# potentially stale, since there may have been a period where the
Expand Down