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

Commit 176f848

Browse files
committed
Backward extremities do not indicate whether we have fetched the prev_events
Spawning from #9445 (comment)
1 parent f179546 commit 176f848

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

docs/development/room-dag-concepts.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,14 @@ Most-recent-in-time events in the DAG which are not referenced by any other even
3838
The forward extremities of a room are used as the `prev_events` when the next event is sent.
3939

4040

41-
## Backwards extremity
41+
## Backward extremity
4242

4343
The current marker of where we have backfilled up to and will generally be the
4444
oldest-in-time events we know of in the DAG.
4545

46-
This is an event where we haven't fetched all of the `prev_events` for.
47-
48-
Once we have fetched all of its `prev_events`, it's unmarked as a backwards
49-
extremity (although we may have formed new backwards extremities from the prev
50-
events during the backfilling process).
46+
When we persist a non-outlier event, we clear it as a backward extremity and set
47+
all of its `prev_events` as the new backward extremities if they aren't already
48+
persisted in the `events` table.
5149

5250

5351
## Outliers
@@ -56,8 +54,7 @@ We mark an event as an `outlier` when we haven't figured out the state for the
5654
room at that point in the DAG yet.
5755

5856
We won't *necessarily* have the `prev_events` of an `outlier` in the database,
59-
but it's entirely possible that we *might*. The status of whether we have all of
60-
the `prev_events` is marked as a [backwards extremity](#backwards-extremity).
57+
but it's entirely possible that we *might*.
6158

6259
For example, when we fetch the event auth chain or state for a given event, we
6360
mark all of those claimed auth events as outliers because we haven't done the

0 commit comments

Comments
 (0)