mirror of
https://github.com/element-hq/synapse
synced 2024-09-12 08:15:11 +00:00
Ensure check_same_thread is enabled for sqlite3
This commit is contained in:
parent
8558e1ec73
commit
416a3e6c4f
1 changed files with 1 additions and 0 deletions
|
@ -372,6 +372,7 @@ def setup(config_options):
|
||||||
db_config.setdefault("args", {}).update({
|
db_config.setdefault("args", {}).update({
|
||||||
"cp_min": 1,
|
"cp_min": 1,
|
||||||
"cp_max": 1,
|
"cp_max": 1,
|
||||||
|
"check_same_thread": False,
|
||||||
})
|
})
|
||||||
else:
|
else:
|
||||||
raise RuntimeError("Unsupported database type '%s'" % (name,))
|
raise RuntimeError("Unsupported database type '%s'" % (name,))
|
||||||
|
|
Loading…
Reference in a new issue