Skip to content
Snippets Groups Projects
Unverified Commit 24804618 authored by Richard van der Hoff's avatar Richard van der Hoff Committed by GitHub
Browse files

Fix `get_metadata_for_events` (#12904)

This method was introduced in #12852. It is using the `state_key` column from
the `events` table, which is not (yet) reliable (see #11496).
parent 11993879
No related branches found
No related tags found
No related merge requests found
Pull out less state when handling gaps in room DAG.
...@@ -167,8 +167,8 @@ class StateGroupWorkerStore(EventsWorkerStore, SQLBaseStore): ...@@ -167,8 +167,8 @@ class StateGroupWorkerStore(EventsWorkerStore, SQLBaseStore):
) )
sql = f""" sql = f"""
SELECT e.event_id, e.room_id, e.type, e.state_key FROM events AS e SELECT e.event_id, e.room_id, e.type, se.state_key FROM events AS e
LEFT JOIN state_events USING (event_id) LEFT JOIN state_events se USING (event_id)
WHERE {clause} WHERE {clause}
""" """
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment