mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-10 02:19:58 -04:00
Fix bug where we reconnected to the database on every query.
This commit is contained in:
parent
23c639ff32
commit
fabb7acd45
2 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue