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

Commit

Permalink
Log when we delete room in bg update (#6816)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston authored Jan 30, 2020
1 parent 184303b commit e0992fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
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

0 comments on commit e0992fc

Please sign in to comment.