1
0

Handle gaps with unassigned stitched ordering

This commit is contained in:
Richard van der Hoff
2025-08-20 09:58:01 +01:00
parent 93d1c4f1d5
commit 883bb8a9b1

View File

@@ -716,7 +716,13 @@ class EventsPersistenceStorageController:
)
)
# TODO XXX what if previous_event_stitched_order is None?
# if previous_event_stitched_order is None, that means we have a room
# where there are existing events or gaps without assigned stitched orders.
# Let's give up trying to assign stitched orders here.
if previous_event_stitched_order is None:
# TODO do something better here
logger.warning("Found gap event %s without assigned stitched order: bailing", gap_event)
return
still_remaining_batch = []
for event, context in remaining_batch: