diff options
author | Eric Eastwood <erice@element.io> | 2022-09-23 14:01:29 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-23 14:01:29 -0500 |
commit | ac1a31740b6d0dfda4d57a25762aaddfde981caf (patch) | |
tree | b46f3ce03e433757fb9ad2cbc67c28783e018bf3 /synapse/handlers | |
parent | Faster room joins: Avoid blocking `/keys/changes` (#13888) (diff) | |
download | synapse-ac1a31740b6d0dfda4d57a25762aaddfde981caf.tar.xz |
Only try to backfill event if we haven't tried before recently (#13635)
Only try to backfill event if we haven't tried before recently (exponential backoff). No need to keep trying the same backfill point that fails over and over. Fix https://github.com/matrix-org/synapse/issues/13622 Fix https://github.com/matrix-org/synapse/issues/8451 Follow-up to https://github.com/matrix-org/synapse/pull/13589 Part of https://github.com/matrix-org/synapse/issues/13356
Diffstat (limited to 'synapse/handlers')
-rw-r--r-- | synapse/handlers/federation.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py index 583d5ecd77..e1a4265a64 100644 --- a/synapse/handlers/federation.py +++ b/synapse/handlers/federation.py @@ -226,9 +226,7 @@ class FederationHandler: """ backwards_extremities = [ _BackfillPoint(event_id, depth, _BackfillPointType.BACKWARDS_EXTREMITY) - for event_id, depth in await self.store.get_oldest_event_ids_with_depth_in_room( - room_id - ) + for event_id, depth in await self.store.get_backfill_points_in_room(room_id) ] insertion_events_to_be_backfilled: List[_BackfillPoint] = [] |