From 0ba496575448f692bb58ba93628f7de2740d954a Mon Sep 17 00:00:00 2001 From: eileen Date: Tue, 28 Nov 2017 19:57:43 +1300 Subject: [PATCH] CRM-21489 document new constant in civicrm.settings.php --- templates/CRM/common/civicrm.settings.php.template | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/templates/CRM/common/civicrm.settings.php.template b/templates/CRM/common/civicrm.settings.php.template index e7b88fb624..5654cd3ab0 100644 --- a/templates/CRM/common/civicrm.settings.php.template +++ b/templates/CRM/common/civicrm.settings.php.template @@ -420,6 +420,13 @@ if (!defined('CIVICRM_DB_CACHE_PREFIX')) { // define('CIVICRM_GETTEXT_NATIVE', 1); // } +/** + * Define how many times to retry a transaction when the DB hits a deadlock + * (ie. the database is locked by another transaction). This is an + * advanced setting intended for high-traffic databases & experienced developers/ admins. + */ +define('CIVICRM_DEADLOCK_RETRIES', 3); + /** * Configure MySQL to throw more errors when encountering unusual SQL expressions. * -- 2.25.1