diff options
author | Erik Johnston <erik@matrix.org> | 2019-12-20 10:48:24 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-20 10:48:24 +0000 |
commit | 75d8f26ac85efd3816d454927f40b6e4c3032df1 (patch) | |
tree | 1e88634b8ac0b8418239015d11e97c9e557477f8 /synapse/config | |
parent | Change EventContext to use the Storage class (#6564) (diff) | |
download | synapse-75d8f26ac85efd3816d454927f40b6e4c3032df1.tar.xz |
Split state groups into a separate data store (#6296)
Diffstat (limited to 'synapse/config')
-rw-r--r-- | synapse/config/database.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/synapse/config/database.py b/synapse/config/database.py index 5f2f3c7cfd..134824789c 100644 --- a/synapse/config/database.py +++ b/synapse/config/database.py @@ -34,10 +34,12 @@ class DatabaseConnectionConfig: module name, and `args` for the args to give to the database connector. data_stores: The list of data stores that should be provisioned on the - database. + database. Defaults to all data stores. """ - def __init__(self, name: str, db_config: dict, data_stores: List[str]): + def __init__( + self, name: str, db_config: dict, data_stores: List[str] = ["main", "state"] + ): if db_config["name"] not in ("sqlite3", "psycopg2"): raise ConfigError("Unsupported database type %r" % (db_config["name"],)) @@ -62,9 +64,7 @@ class DatabaseConfig(Config): if database_config is None: database_config = {"name": "sqlite3", "args": {}} - self.databases = [ - DatabaseConnectionConfig("master", database_config, data_stores=["main"]) - ] + self.databases = [DatabaseConnectionConfig("master", database_config)] self.set_databasepath(config.get("database_path")) |