*
* 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();
*/
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.
*