Fix current_state_events membership background update.

Turns out not all rooms are in `rooms`, so lets fetch the room list from
`current_state_events`. We move the delta file to force it to be run
again.
code_spécifique_watcha
Erik Johnston 5 years ago
parent 7a48d0bab8
commit 15056ca208
  1. 2
      synapse/storage/roommember.py
  2. 0
      synapse/storage/schema/delta/56/current_state_events_membership_mk2.sql

@ -935,7 +935,7 @@ class RoomMemberStore(RoomMemberWorkerStore):
while processed < batch_size: while processed < batch_size:
txn.execute( txn.execute(
""" """
SELECT MIN(room_id) FROM rooms WHERE room_id > ? SELECT MIN(room_id) FROM current_state_events WHERE room_id > ?
""", """,
(last_processed_room,), (last_processed_room,),
) )

Loading…
Cancel
Save