From 017f2c83350d7a945b4586c232640e530d7f55ab Mon Sep 17 00:00:00 2001 From: kdruckman Date: Tue, 20 Apr 2021 03:43:09 -0500 Subject: [PATCH] ACMS-736: Temporary workaround for MySql timeout on ACE. (#773) --- patches/d9-acms-settings.patch | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/patches/d9-acms-settings.patch b/patches/d9-acms-settings.patch index 6a6ce91a1..d6b203562 100644 --- a/patches/d9-acms-settings.patch +++ b/patches/d9-acms-settings.patch @@ -11,6 +11,8 @@ $site_name = AcquiaDrupalEnvironmentDetector::getSiteName($site_path); if (AcquiaDrupalEnvironmentDetector::isAhEnv()) { $ah_group = AcquiaDrupalEnvironmentDetector::getAhGroup(); if (!AcquiaDrupalEnvironmentDetector::isAcsfEnv()) { + global $conf, $databases; + $conf['acquia_hosting_settings_autoconnect'] = FALSE; if ($site_name == 'default') { require "/var/www/site-php/$ah_group/$ah_group-settings.inc"; } else { @@ -18,6 +20,11 @@ if (AcquiaDrupalEnvironmentDetector::isAhEnv()) { $safe_site_name = str_replace('.', '_', $site_name); require "/var/www/site-php/$ah_group/$safe_site_name-settings.inc"; } + // Temporary workaround to override the default MySQL wait_timeout setting. + $databases['default']['default']['init_commands'] = array( + 'wait_timeout' => "SET SESSION wait_timeout=1200", + ); + acquia_hosting_db_choose_active(); } }