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
d2455ec3
Commit
d2455ec3
authored
5 years ago
by
Richard van der Hoff
Committed by
Richard van der Hoff
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
wait for current_state_events_membership before delete_old_current_state_events (#6924)
parent
7b8d654a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
changelog.d/6924.bugfix
+1
-0
1 addition, 0 deletions
changelog.d/6924.bugfix
synapse/storage/data_stores/main/schema/delta/57/delete_old_current_state_events.sql
+5
-2
5 additions, 2 deletions
.../main/schema/delta/57/delete_old_current_state_events.sql
with
6 additions
and
2 deletions
changelog.d/6924.bugfix
0 → 100644
+
1
−
0
View file @
d2455ec3
Fix a bug introduced in Synapse 1.10.0 which would cause room state to be cleared in the database if Synapse was upgraded direct from 1.2.1 or earlier to 1.10.0.
This diff is collapsed.
Click to expand it.
synapse/storage/data_stores/main/schema/delta/57/delete_old_current_state_events.sql
+
5
−
2
View file @
d2455ec3
...
@@ -15,5 +15,8 @@
...
@@ -15,5 +15,8 @@
-- Add background update to go and delete current state events for rooms the
-- Add background update to go and delete current state events for rooms the
-- server is no longer in.
-- server is no longer in.
INSERT
into
background_updates
(
update_name
,
progress_json
)
--
VALUES
(
'delete_old_current_state_events'
,
'{}'
);
-- this relies on the 'membership' column of current_state_events, so make sure
-- that's populated first!
INSERT
into
background_updates
(
update_name
,
progress_json
,
depends_on
)
VALUES
(
'delete_old_current_state_events'
,
'{}'
,
'current_state_events_membership'
);
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