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

Fix a bug where the joined hosts for a given event were not being properly cached #14125

Merged
merged 4 commits into from
Oct 12, 2022

Conversation

H-Shay
Copy link
Contributor

@H-Shay H-Shay commented Oct 10, 2022

Currently we pre-calculate the joined hosts at an event when using redis so that external federation senders don't have to calculate this themselves. The bug being fixed, introduced in #13800, resulted in the joined hosts only being calculated for the first event in a batch being persisted, rather than at all of them. This PR changes cache_joined_hosts_for_events to take a list of events, and calculate the joined hosts at each of the events.

@H-Shay H-Shay requested a review from a team as a code owner October 10, 2022 20:58
@erikjohnston erikjohnston self-assigned this Oct 12, 2022
@H-Shay H-Shay merged commit b6baa46 into develop Oct 12, 2022
@H-Shay H-Shay deleted the shay/fix_batch_cache branch October 12, 2022 18:01
@H-Shay
Copy link
Contributor Author

H-Shay commented Oct 12, 2022

Merged #14125 into develop, thank you.

@H-Shay H-Shay assigned H-Shay and unassigned erikjohnston Oct 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants