diff options
author | Erik Johnston <erik@matrix.org> | 2020-05-15 17:22:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-15 17:22:47 +0100 |
commit | 03aff4c75ed3b0b106ed1395b3d03b1ab9b013a6 (patch) | |
tree | 4554ad13db567bed7efeff66bfbe63a9b9410634 /synapse/app/generic_worker.py | |
parent | Prevent 0-member/null room_version rooms from appearing in group room queries... (diff) | |
download | synapse-03aff4c75ed3b0b106ed1395b3d03b1ab9b013a6.tar.xz |
Add a worker store for search insertion. (#7516)
This is required as both event persistence and the background update needs access to this function. It should be perfectly safe for two workers to write to that table at the same time.
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 2e3add7ac5..ab801108ca 100644 --- a/synapse/app/generic_worker.py +++ b/synapse/app/generic_worker.py @@ -122,6 +122,7 @@ from synapse.storage.data_stores.main.monthly_active_users import ( MonthlyActiveUsersWorkerStore, ) from synapse.storage.data_stores.main.presence import UserPresenceState +from synapse.storage.data_stores.main.search import SearchWorkerStore from synapse.storage.data_stores.main.ui_auth import UIAuthWorkerStore from synapse.storage.data_stores.main.user_directory import UserDirectoryStore from synapse.types import ReadReceipt @@ -451,6 +452,7 @@ class GenericWorkerSlavedStore( SlavedFilteringStore, MonthlyActiveUsersWorkerStore, MediaRepositoryStore, + SearchWorkerStore, BaseSlavedStore, ): def __init__(self, database, db_conn, hs): |