-
- Downloads
Stop the master relaying USER_SYNC for other workers (#7318)
Long story short: if we're handling presence on the current worker, we shouldn't be sending USER_SYNC commands over replication. In an attempt to figure out what is going on here, I ended up refactoring some bits of the presencehandler code, so the first 4 commits here are non-functional refactors to move this code slightly closer to sanity. (There's still plenty to do here :/). Suggest reviewing individual commits. Fixes (I hope) #7257.
Showing
- changelog.d/7318.misc 1 addition, 0 deletionschangelog.d/7318.misc
- docs/tcp_replication.md 1 addition, 5 deletionsdocs/tcp_replication.md
- synapse/api/constants.py 2 additions, 0 deletionssynapse/api/constants.py
- synapse/app/generic_worker.py 49 additions, 36 deletionssynapse/app/generic_worker.py
- synapse/handlers/events.py 12 additions, 8 deletionssynapse/handlers/events.py
- synapse/handlers/initial_sync.py 8 additions, 2 deletionssynapse/handlers/initial_sync.py
- synapse/handlers/presence.py 115 additions, 95 deletionssynapse/handlers/presence.py
- synapse/replication/tcp/commands.py 5 additions, 2 deletionssynapse/replication/tcp/commands.py
- synapse/replication/tcp/handler.py 5 additions, 10 deletionssynapse/replication/tcp/handler.py
- synapse/server.pyi 1 addition, 1 deletionsynapse/server.pyi
Loading
Please register or sign in to comment