Remove CIVICRM_SUPPORT_MULTIPLE_LOCKS and make it always enabled if available
authorMatthew Wire (MJW Consulting) <mjw@mjwconsult.co.uk>
Fri, 25 Oct 2019 09:36:54 +0000 (10:36 +0100)
committerMatthew Wire (MJW Consulting) <mjw@mjwconsult.co.uk>
Fri, 25 Oct 2019 09:36:54 +0000 (10:36 +0100)
CRM/Utils/SQL.php
templates/CRM/common/civicrm.settings.php.template

index d7aab2132bc5307343c9b192c5f0abe4924bd60b..7c53535c7515e6273c7e9cb30d575a2a5a6c89ce 100644 (file)
@@ -124,16 +124,11 @@ class CRM_Utils_SQL {
    *
    * https://dev.mysql.com/doc/refman/5.7/en/miscellaneous-functions.html#function_get-lock
    *
-   * As an interim measure we ALSO require CIVICRM_SUPPORT_MULTIPLE_LOCKS to be defined.
-   *
    * This is a conservative measure to introduce the change which we expect to deprecate later.
    *
    * @todo we only check mariadb & mysql right now but maybe can add percona.
    */
   public static function supportsMultipleLocks() {
-    if (!defined('CIVICRM_SUPPORT_MULTIPLE_LOCKS')) {
-      return FALSE;
-    }
     static $isSupportLocks = NULL;
     if (!isset($isSupportLocks)) {
       $version = self::getDatabaseVersion();
index c326ea4229d5e7bede1903af908e740a1487f073..4d2683f30074461794aead371da304459b02f919 100644 (file)
@@ -462,20 +462,6 @@ if (!defined('CIVICRM_PSR16_STRICT')) {
  */
 define('CIVICRM_DEADLOCK_RETRIES', 3);
 
-/**
- * Enable support for multiple locks.
- *
- * This is a transitional setting. When enabled sites with mysql 5.7.5+ or equivalent
- * MariaDB can improve their DB conflict management.
- *
- * There is no known or expected downside or enabling this (and definite upside).
- * The setting only exists to allow sites to manage change in their environment
- * conservatively for the first 3 months.
- *
- * See https://github.com/civicrm/civicrm-core/pull/13854
- */
- // define('CIVICRM_SUPPORT_MULTIPLE_LOCKS', TRUE);
-
 /**
  * Configure MySQL to throw more errors when encountering unusual SQL expressions.
  *