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

Commit c226da4

Browse files
committed
Fix 2
1 parent d4b9aa8 commit c226da4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

synapse/storage/databases/main/events_bg_updates.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,11 @@ def _get_event_ids(txn: Cursor) -> List[Tuple[str, int, int]]:
767767
event_ids, redact_behaviour=EventRedactBehaviour.AS_IS, allow_rejected=True
768768
)
769769

770-
await self.hs.get_datastores().persist_events._add_chain_info(events)
770+
await self.runInteraction(
771+
"_chain_cover_index_info",
772+
self.hs.get_datastores().persist_events._add_chain_info,
773+
events,
774+
)
771775

772776
if len(event_ids) < batch_size:
773777
await self.db_pool.updates._background_update_progress(

0 commit comments

Comments
 (0)