fix: Re-introduce edge reference tracking #2476
No reviewers
Labels
No labels
Abandoned
Blocked
Bug
Changelog
Added
Changelog
Missing
Changelog
None
Cherry-picking
Compliance
Continuwuity/Web Interface
Database
Dependencies
Dependencies/Renovate
Difficulty
Easy
Difficulty
Hard
Difficulty
Medium
Documentation
Enhancement
Good first issue
Help wanted
Inherited
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Core
Matrix/E2EE
Matrix/Federation
Matrix/Hydra
Matrix/MSC
Matrix/Media
Matrix/T&S
Merge
Merge/Manual
Merge/Squash
Meta
Meta/CI
Meta/Packaging
Priority
Blocking
Priority
High
Priority
Low
Security
Status
Confirmed
Status
Duplicate
Status
Invalid
Status
Needs Investigation
Support
bob the builder
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
continuwuation/continuwuity!2476
Loading…
Reference in a new issue
No description provided.
Delete branch "jade/edge-reference-tracking"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This pull request fixes a regression introduced in #2356 that naively assumed Matrix is linear and tried to optimise accordingly. Matrix is not linear. The optimisation causes explosions by nature of adding actually-referenced events as forward extremities if they were received after their descendants. This PR fixes this by partially reverting changes introduced by #2356 to once again track event edges explicitly.
Pull request checklist:
mainbranch, and the branch is named something other thanmain.myself, if applicable. This includes ensuring code compiles.
Saying no changelog needed because this is a bugfix for a regression that wasn't released
Would self-approve if I could
@ -177,19 +185,37 @@ impl super::Service {// Now we collect all the prev events of this predecessor and filter// for ones that we 1. know, 2. are not backfilled, and 3. have// rejected/soft-failed.// Additionally, drop anyhalf-written comment? this feels like it ends too abruptly
bd920c98740a52421b65