diff options
author | Erik Johnston <erik@matrix.org> | 2021-06-29 19:15:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-29 19:15:47 +0100 |
commit | 85d237eba789a667109ced140026d2494b210310 (patch) | |
tree | 81748cb2aab20b1d34e8a09775a06abf6eb0803b /synapse/app/generic_worker.py | |
parent | Incorportate review comments (diff) | |
download | synapse-85d237eba789a667109ced140026d2494b210310.tar.xz |
Add a distributed lock (#10269)
This adds a simple best effort locking mechanism that works cross workers.
Diffstat (limited to 'synapse/app/generic_worker.py')
-rw-r--r-- | synapse/app/generic_worker.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/app/generic_worker.py b/synapse/app/generic_worker.py index af8a1833f3..5b041fcaad 100644 --- a/synapse/app/generic_worker.py +++ b/synapse/app/generic_worker.py @@ -108,6 +108,7 @@ from synapse.server import HomeServer from synapse.storage.databases.main.censor_events import CensorEventsStore from synapse.storage.databases.main.client_ips import ClientIpWorkerStore from synapse.storage.databases.main.e2e_room_keys import EndToEndRoomKeyStore +from synapse.storage.databases.main.lock import LockStore from synapse.storage.databases.main.media_repository import MediaRepositoryStore from synapse.storage.databases.main.metrics import ServerMetricsStore from synapse.storage.databases.main.monthly_active_users import ( @@ -249,6 +250,7 @@ class GenericWorkerSlavedStore( ServerMetricsStore, SearchStore, TransactionWorkerStore, + LockStore, BaseSlavedStore, ): pass |