summary refs log tree commit diff
path: root/synapse/storage/engines/postgres.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-05-14 16:54:35 +0100
committerErik Johnston <erik@matrix.org>2015-05-14 16:54:35 +0100
commit1d566edb81e1dffea026d4e603a12cee664a8eda (patch)
treecd5487b49933a00ea255dd8df15ca94e293922f1 /synapse/storage/engines/postgres.py
parentCall from right thread (diff)
downloadsynapse-1d566edb81e1dffea026d4e603a12cee664a8eda.tar.xz
Remove race condition
Diffstat (limited to 'synapse/storage/engines/postgres.py')
-rw-r--r--synapse/storage/engines/postgres.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/storage/engines/postgres.py b/synapse/storage/engines/postgres.py
index a323028546..4a855ffd56 100644
--- a/synapse/storage/engines/postgres.py
+++ b/synapse/storage/engines/postgres.py
@@ -19,6 +19,8 @@ from ._base import IncorrectDatabaseSetup
 
 
 class PostgresEngine(object):
+    single_threaded = False
+
     def __init__(self, database_module):
         self.module = database_module
         self.module.extensions.register_type(self.module.extensions.UNICODE)