Skip to content
Snippets Groups Projects
Unverified Commit 2ec9c584 authored by Sean Quah's avatar Sean Quah Committed by GitHub
Browse files

Faster joins: Update room stats and the user directory on workers when finishing join (#14874)


* Faster joins: Update room stats and user directory on workers when done

When finishing a partial state join to a room, we update the current
state of the room without persisting additional events. Workers receive
notice of the current state update over replication, but neglect to wake
the room stats and user directory updaters, which then get incidentally
triggered the next time an event is persisted or an unrelated event
persister sends out a stream position update.

We wake the room stats and user directory updaters at the appropriate
time in this commit.

Part of #12814 and #12815.

Signed-off-by: default avatarSean Quah <seanq@matrix.org>

* fixup comment

Signed-off-by: default avatarSean Quah <seanq@matrix.org>
parent 22cc93af
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment