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

Commit

Permalink
Moar fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Jan 6, 2021
1 parent 67c231f commit 685d98b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion synapse/storage/databases/main/events_bg_updates.py
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,9 @@ def _get_event_ids(txn: Cursor) -> List[Tuple[str, int, int]]:
sql = """
SELECT event_id, topological_ordering, stream_ordering FROM events
INNER JOIN state_events USING (event_id)
LEFT JOIN event_auth_chains USING (event_id)
WHERE events.room_id = ? AND (topological_ordering, stream_ordering) > (?, ?)
AND event_auth_chains.event_id IS NULL
ORDER BY topological_ordering, stream_ordering
LIMIT ?
"""
Expand All @@ -767,7 +769,7 @@ def _get_event_ids(txn: Cursor) -> List[Tuple[str, int, int]]:
event_ids, redact_behaviour=EventRedactBehaviour.AS_IS, allow_rejected=True
)

await self.runInteraction(
await self.db_pool.runInteraction(
"_chain_cover_index_info",
self.hs.get_datastores().persist_events._add_chain_info,
events,
Expand Down

0 comments on commit 685d98b

Please sign in to comment.