summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-05-27 10:44:44 +0100
committerErik Johnston <erik@matrix.org>2016-05-27 10:44:44 +0100
commit85b992f621743adc45945f67b1b1bbf4aed198fb (patch)
treef4b18cee6c07d92dbf0eb7107b325890b8d3a338 /synapse/storage
parentSend down correct error response if user not found (diff)
downloadsynapse-85b992f621743adc45945f67b1b1bbf4aed198fb.tar.xz
Fix to allow start with postgres
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/__init__.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/synapse/storage/__init__.py b/synapse/storage/__init__.py
index 49feb77779..8581796b7e 100644
--- a/synapse/storage/__init__.py
+++ b/synapse/storage/__init__.py
@@ -17,7 +17,7 @@ from twisted.internet import defer
 from .appservice import (
     ApplicationServiceStore, ApplicationServiceTransactionStore
 )
-from ._base import Cache
+from ._base import Cache, LoggingTransaction
 from .directory import DirectoryStore
 from .events import EventsStore
 from .presence import PresenceStore, UserPresenceState
@@ -174,7 +174,12 @@ class DataStore(RoomMemberStore, RoomStore,
             prefilled_cache=push_rules_prefill,
         )
 
-        cur = db_conn.cursor()
+        cur = LoggingTransaction(
+            db_conn.cursor(),
+            name="_find_stream_orderings_for_times_txn",
+            database_engine=self.database_engine,
+            after_callbacks=[]
+        )
         self._find_stream_orderings_for_times_txn(cur)
         cur.close()