mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-22 09:35:45 +03:00
Ensure ReplicationStreamer is always started when replication enabled. (#7579)
Fixes #7566.
This commit is contained in:
parent
b3b2038b6a
commit
9bac5d62b3
2 changed files with 4 additions and 0 deletions
1
changelog.d/7579.bugfix
Normal file
1
changelog.d/7579.bugfix
Normal file
|
@ -0,0 +1 @@
|
|||
Fix bug where `ReplicationStreamer` was not always started when replication was enabled. Bug introduced in v1.14.0rc1.
|
|
@ -159,6 +159,9 @@ class ReplicationCommandHandler:
|
|||
hs.config.redis_port,
|
||||
)
|
||||
|
||||
# First let's ensure that we have a ReplicationStreamer started.
|
||||
hs.get_replication_streamer()
|
||||
|
||||
# We need two connections to redis, one for the subscription stream and
|
||||
# one to send commands to (as you can't send further redis commands to a
|
||||
# connection after SUBSCRIBE is called).
|
||||
|
|
Loading…
Reference in a new issue