From fabb7acd459dc67990c5becae63e71f631399a5e Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Fri, 1 May 2015 10:24:24 +0100 Subject: Fix bug where we reconnected to the database on every query. --- synapse/storage/_base.py | 1 + 1 file changed, 1 insertion(+) (limited to 'synapse/storage/_base.py') diff --git a/synapse/storage/_base.py b/synapse/storage/_base.py index 6017c2a6e8..1945e0d174 100644 --- a/synapse/storage/_base.py +++ b/synapse/storage/_base.py @@ -301,6 +301,7 @@ class SQLBaseStore(object): def inner_func(conn, *args, **kwargs): with LoggingContext("runInteraction") as context: if self.database_engine.is_connection_closed(conn): + logger.debug("Reconnecting closed database connection") conn.reconnect() current_context.copy_to(context) -- cgit 1.4.1