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

Commit

Permalink
Fix race where we didn't send out replication notification
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Jan 6, 2023
1 parent 7e5fa19 commit 091a313
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions synapse/storage/databases/main/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ def process_replication_rows(
for row in rows:
assert isinstance(row, UnPartialStatedEventStreamRow)
self._get_state_group_for_event.invalidate((row.event_id,))
self.is_partial_state_event.invalidate((row.event_id,))

super().process_replication_rows(stream_name, instance_name, token, rows)

Expand Down Expand Up @@ -485,6 +486,7 @@ def _update_state_for_partial_state_event_txn(
"rejection_status_changed": rejection_status_changed,
},
)
txn.call_after(self.hs.get_notifier().on_new_replication_data)


class MainStateBackgroundUpdateStore(RoomMemberWorkerStore):
Expand Down

0 comments on commit 091a313

Please sign in to comment.