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

Commit

Permalink
Fix bug where we didn't calculate the state correctly for new events
Browse files Browse the repository at this point in the history
This was introduced in #13267
  • Loading branch information
erikjohnston committed Jul 14, 2022
1 parent f98c691 commit efd5c32
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion synapse/storage/controllers/persist_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -934,6 +934,8 @@ async def _get_new_state_after_events(
state_res_store=StateResolutionStore(self.main_store),
)

full_state = await res.get_state(self._state_controller)

state_resolutions_during_persistence.inc()

# If the returned state matches the state group of one of the new
Expand All @@ -948,7 +950,7 @@ async def _get_new_state_after_events(
events_context,
)

return res.state, None, new_latest_event_ids
return full_state, None, new_latest_event_ids

async def _prune_extremities(
self,
Expand Down

0 comments on commit efd5c32

Please sign in to comment.