summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-12-10 12:50:04 +0000
committerErik Johnston <erik@matrix.org>2019-12-10 12:50:04 +0000
commitaadc131dc1aa5f95f8f162c7330f19a3ba543443 (patch)
treec626c810424612e3f6a3a0cdba4ae1e878efd642
parentMerge branch 'release-v1.7.0' of github.com:matrix-org/synapse into matrix-or... (diff)
parentChangelog (diff)
downloadsynapse-aadc131dc1aa5f95f8f162c7330f19a3ba543443.tar.xz
Merge branch 'babolivier/pusher-room-store' of github.com:matrix-org/synapse into matrix-org-hotfixes
-rw-r--r--changelog.d/6507.bugfix1
-rw-r--r--synapse/app/pusher.py7
2 files changed, 7 insertions, 1 deletions
diff --git a/changelog.d/6507.bugfix b/changelog.d/6507.bugfix
new file mode 100644

index 0000000000..7f95da52c9 --- /dev/null +++ b/changelog.d/6507.bugfix
@@ -0,0 +1 @@ +Fix pusher worker failing because it can't retrieve retention policies for rooms. diff --git a/synapse/app/pusher.py b/synapse/app/pusher.py
index 01a5ffc363..dd52a9fc2d 100644 --- a/synapse/app/pusher.py +++ b/synapse/app/pusher.py
@@ -33,6 +33,7 @@ from synapse.replication.slave.storage.account_data import SlavedAccountDataStor from synapse.replication.slave.storage.events import SlavedEventStore from synapse.replication.slave.storage.pushers import SlavedPusherStore from synapse.replication.slave.storage.receipts import SlavedReceiptsStore +from synapse.replication.slave.storage.room import RoomStore from synapse.replication.tcp.client import ReplicationClientHandler from synapse.server import HomeServer from synapse.storage import DataStore @@ -45,7 +46,11 @@ logger = logging.getLogger("synapse.app.pusher") class PusherSlaveStore( - SlavedEventStore, SlavedPusherStore, SlavedReceiptsStore, SlavedAccountDataStore + SlavedEventStore, + SlavedPusherStore, + SlavedReceiptsStore, + SlavedAccountDataStore, + RoomStore, ): update_pusher_last_stream_ordering_and_success = __func__( DataStore.update_pusher_last_stream_ordering_and_success