Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maunium
synapse
Commits
e0992fcc
Unverified
Commit
e0992fcc
authored
5 years ago
by
Erik Johnston
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Log when we delete room in bg update (#6816)
parent
184303b8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
changelog.d/6816.misc
+1
-0
1 addition, 0 deletions
changelog.d/6816.misc
synapse/storage/data_stores/main/state.py
+2
-0
2 additions, 0 deletions
synapse/storage/data_stores/main/state.py
with
3 additions
and
0 deletions
changelog.d/6816.misc
0 → 100644
+
1
−
0
View file @
e0992fcc
Add background update to clean out left rooms from current state.
This diff is collapsed.
Click to expand it.
synapse/storage/data_stores/main/state.py
+
2
−
0
View file @
e0992fcc
...
@@ -365,6 +365,8 @@ class MainStateBackgroundUpdateStore(RoomMemberWorkerStore):
...
@@ -365,6 +365,8 @@ class MainStateBackgroundUpdateStore(RoomMemberWorkerStore):
left_rooms
=
set
(
room_ids
)
-
joined_room_ids
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
# 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
# room. This is so that we can mark those device lists as
# potentially stale, since there may have been a period where the
# potentially stale, since there may have been a period where the
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment