Browse Source

Also fix reindexing of search

Erik Johnston 6 years ago
parent
commit
22881b3d69
1 changed files with 1 additions and 1 deletions
  1. 1 1
      synapse/storage/search.py

+ 1 - 1
synapse/storage/search.py

@@ -77,7 +77,7 @@ class SearchStore(BackgroundUpdateStore):
             sql = (
                 "SELECT stream_ordering, event_id, room_id, type, json, "
                 " origin_server_ts FROM events"
-                " JOIN event_json USING (event_id)"
+                " JOIN event_json USING (room_id, event_id)"
                 " WHERE ? <= stream_ordering AND stream_ordering < ?"
                 " AND (%s)"
                 " ORDER BY stream_ordering DESC"