summary refs log tree commit diff
path: root/synapse/app/homeserver.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-04-27 15:44:30 +0100
committerErik Johnston <erik@matrix.org>2015-04-27 15:44:30 +0100
commit416a3e6c4f40c94cf859a07dbc4341c907aac091 (patch)
tree3849513825a7211174e62918e8f5d9377ee4ed9b /synapse/app/homeserver.py
parentMake get_max_token into inlineCallbacks so that the lock works. (diff)
downloadsynapse-416a3e6c4f40c94cf859a07dbc4341c907aac091.tar.xz
Ensure check_same_thread is enabled for sqlite3
Diffstat (limited to '')
-rwxr-xr-xsynapse/app/homeserver.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/app/homeserver.py b/synapse/app/homeserver.py
index 93500dd791..3709cd7bf9 100755
--- a/synapse/app/homeserver.py
+++ b/synapse/app/homeserver.py
@@ -372,6 +372,7 @@ def setup(config_options):
         db_config.setdefault("args", {}).update({
             "cp_min": 1,
             "cp_max": 1,
+            "check_same_thread": False,
         })
     else:
         raise RuntimeError("Unsupported database type '%s'" % (name,))