Skip to content

Commit

Permalink
Merge pull request #15604 from mattwire/multiplelocks
Browse files Browse the repository at this point in the history
Remove CIVICRM_SUPPORT_MULTIPLE_LOCKS and make it always enabled if available
  • Loading branch information
eileenmcnaughton authored Oct 25, 2019
2 parents 55af4b2 + 1079a30 commit c01d967
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
5 changes: 0 additions & 5 deletions CRM/Utils/SQL.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,16 +124,11 @@ public static function isGroupByModeInDefault() {
*
* 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();
Expand Down
14 changes: 0 additions & 14 deletions templates/CRM/common/civicrm.settings.php.template
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit c01d967

Please sign in to comment.