anonymousland-synapse/synapse
Richard van der Hoff 71a1abb8a1
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.
2020-04-22 22:39:04 +01:00
..
_scripts
api Stop the master relaying USER_SYNC for other workers (#7318) 2020-04-22 22:39:04 +01:00
app Stop the master relaying USER_SYNC for other workers (#7318) 2020-04-22 22:39:04 +01:00
appservice
config Add ability to run replication protocol over redis. (#7040) 2020-04-22 13:07:41 +01:00
crypto
events
federation Merge branch 'release-v1.12.4' into develop 2020-04-22 13:09:23 +01:00
groups
handlers Stop the master relaying USER_SYNC for other workers (#7318) 2020-04-22 22:39:04 +01:00
http Reduce federation logging on success (#7321) 2020-04-22 11:18:18 +01:00
logging Reduce the number of calls to resource.getrusage (#7183) 2020-04-03 13:21:30 +01:00
metrics
module_api Convert auth handler to async/await (#7261) 2020-04-15 12:40:18 -04:00
push Do not treat display names as globs for push rules. (#7271) 2020-04-22 13:07:12 +01:00
replication Stop the master relaying USER_SYNC for other workers (#7318) 2020-04-22 22:39:04 +01:00
res/templates Use a template for the SSO success page to allow for customization. (#7279) 2020-04-17 13:34:55 -04:00
rest Extend room admin api with additional attributes (#7225) 2020-04-22 13:38:41 +01:00
server_notices Server notices: Dissociate room creation/lookup from invite (#7199) 2020-04-04 17:27:45 +02:00
spam_checker_api
state
static Make it clearer to the user that they haven't overridden onLogin/Register (#7237) 2020-04-09 12:38:38 +01:00
storage Extend room admin api with additional attributes (#7225) 2020-04-22 13:38:41 +01:00
streams
util Extend StreamChangeCache to support multiple entities per stream ID (#7303) 2020-04-22 13:45:40 +01:00
__init__.py 1.12.4rc1 2020-04-22 14:28:23 +01:00
event_auth.py
notifier.py
python_dependencies.py Add ability to run replication protocol over redis. (#7040) 2020-04-22 13:07:41 +01:00
secrets.py
server.py Move client command handling out of TCP protocol (#7185) 2020-04-06 09:58:42 +01:00
server.pyi Stop the master relaying USER_SYNC for other workers (#7318) 2020-04-22 22:39:04 +01:00
types.py
visibility.py