X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Ffilebackend%2Flockmanager%2FMySqlLockManager.php;h=fc23f7655be2781a5365580f0289f4b0fd0a5204;hb=1d95c68977ef49738eb0fc9c3701afe06467fbeb;hp=f4ff71eb8395ba8b195d0f88739883d377a4f662;hpb=0560290e8d1c300394f09adcf945553fa84ff049;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/filebackend/lockmanager/MySqlLockManager.php b/includes/filebackend/lockmanager/MySqlLockManager.php index f4ff71eb83..fc23f7655b 100644 --- a/includes/filebackend/lockmanager/MySqlLockManager.php +++ b/includes/filebackend/lockmanager/MySqlLockManager.php @@ -19,6 +19,12 @@ class MySqlLockManager extends DBLockManager { self::LOCK_EX => self::LOCK_EX ]; + public function __construct( array $config ) { + parent::__construct( $config ); + + $this->session = substr( $this->session, 0, 31 ); // fit to field + } + protected function initConnection( $lockDb, IDatabase $db ) { # Let this transaction see lock rows from other transactions $db->query( "SET SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;" );