From c00fd62ea6ecd55aa178f7fcf6d19295430f653a Mon Sep 17 00:00:00 2001 From: Madison Kelly Date: Wed, 5 Jun 2024 14:46:13 -0400 Subject: [PATCH] Removed the lock release in Database->reconnect(). Signed-off-by: Madison Kelly --- Anvil/Tools/Database.pm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Anvil/Tools/Database.pm b/Anvil/Tools/Database.pm index 458af6e2..48c13266 100644 --- a/Anvil/Tools/Database.pm +++ b/Anvil/Tools/Database.pm @@ -17644,7 +17644,7 @@ sub query $anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => $debug, list => { 'alarm $@' => $@ }}); if ($@) { - if ($timeout) + if (($@ =~ /time/i) && ($@ =~ /out/i)) { # Timed out $anvil->Log->entry({source => $THIS_FILE, line => __LINE__, level => $debug, key => "warning_0175", variables => { @@ -18022,9 +18022,6 @@ sub reconnect my $debug = defined $parameter->{debug} ? $parameter->{debug} : 3; $anvil->Log->entry({source => $THIS_FILE, line => __LINE__, level => $debug, key => "log_0125", variables => { method => "Database->reconnect()" }}); - # Close our own connection. - $anvil->Database->locking({debug => $debug, release => 1}); - # Disconnect from all databases and then stop the daemon, then reconnect. $anvil->Database->disconnect({debug => $debug}); sleep 2;