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
5d069291
Commit
5d069291
authored
9 years ago
by
Mark Haines
Browse files
Options
Downloads
Patches
Plain Diff
Move the check for backfilled outside the for loop
parent
76503f95
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
synapse/storage/events.py
+5
-5
5 additions, 5 deletions
synapse/storage/events.py
with
5 additions
and
5 deletions
synapse/storage/events.py
+
5
−
5
View file @
5d069291
...
@@ -485,12 +485,12 @@ class EventsStore(SQLBaseStore):
...
@@ -485,12 +485,12 @@ class EventsStore(SQLBaseStore):
],
],
)
)
for
event
,
_
in
state_events_and_contexts
:
if
backfilled
:
if
backfilled
:
# Backfilled events come before the current state so we don't need
# Backfilled events come before the current state so shouldn't
# to update the current state table
# clobber it.
return
continue
for
event
,
_
in
state_events_and_contexts
:
if
(
not
event
.
internal_metadata
.
is_invite_from_remote
()
if
(
not
event
.
internal_metadata
.
is_invite_from_remote
()
and
event
.
internal_metadata
.
is_outlier
()):
and
event
.
internal_metadata
.
is_outlier
()):
# Outlier events generally shouldn't clobber the current state.
# Outlier events generally shouldn't clobber the current state.
...
...
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