diff options
author | Richard van der Hoff <richard@matrix.org> | 2018-10-03 10:19:41 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2018-10-03 10:19:41 +0100 |
commit | 9693625e556df1af66ba376d49411064c2d0f47e (patch) | |
tree | c98080a615758a61b9bac9f4ecf9b0629f384c87 /synapse/storage/events.py | |
parent | fix newsfile name (diff) | |
download | synapse-9693625e556df1af66ba376d49411064c2d0f47e.tar.xz |
actually exclude outliers
Diffstat (limited to 'synapse/storage/events.py')
-rw-r--r-- | synapse/storage/events.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/storage/events.py b/synapse/storage/events.py index 8822dc7bcb..03cedf3a75 100644 --- a/synapse/storage/events.py +++ b/synapse/storage/events.py @@ -560,7 +560,7 @@ class EventsStore(EventFederationStore, EventsWorkerStore, BackgroundUpdateStore @defer.inlineCallbacks def _get_events_which_are_prevs(self, event_ids): """Filter the supplied list of event_ids to get those which are prev_events of - existing (non-outlier) events. + existing (non-outlier/rejected) events. Args: event_ids (Iterable[str]): event ids to filter @@ -578,6 +578,7 @@ class EventsStore(EventFederationStore, EventsWorkerStore, BackgroundUpdateStore LEFT JOIN rejections USING (event_id) WHERE prev_event_id IN (%s) + AND NOT events.outlier AND rejections.event_id IS NULL """ % ( ",".join("?" for _ in batch), |