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

Commit

Permalink
Don't hold onto full state in state cache
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Jul 19, 2022
1 parent c5f487b commit 084fc08
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions synapse/state/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,10 @@ async def compute_event_context(
)
)
entry.state_group = state_group_before_event

# We null out the state here so that the state cache doesn't
# hold on to it indefinitely.
entry._state = None
else:
state_group_before_event = entry.state_group

Expand Down

0 comments on commit 084fc08

Please sign in to comment.