mirror of
https://github.com/MariaDB/server.git
synced 2025-05-28 13:01:41 +03:00
Contains also MDEV-10547: Test multi_update_innodb fails with InnoDB 5.7 The failure happened because 5.7 has changed the signature of the bool handler::primary_key_is_clustered() const virtual function ("const" was added). InnoDB was using the old signature which caused the function not to be used. MDEV-10550: Parallel replication lock waits/deadlock handling does not work with InnoDB 5.7 Fixed mutexing problem on lock_trx_handle_wait. Note that rpl_parallel and rpl_optimistic_parallel tests still fail. MDEV-10156 : Group commit tests fail on 10.2 InnoDB (branch bb-10.2-jan) Reason: incorrect merge MDEV-10550: Parallel replication can't sync with master in InnoDB 5.7 (branch bb-10.2-jan) Reason: incorrect merge
51 lines
1.2 KiB
Plaintext
51 lines
1.2 KiB
Plaintext
'#--------------------FN_DYNVARS_048_01-------------------------#'
|
|
SET @start_value= @@global.innodb_table_locks;
|
|
SELECT @start_value;
|
|
@start_value
|
|
1
|
|
SET @@global.innodb_table_locks = OFF;
|
|
'connect (con1,localhost,root,,,,)'
|
|
connect con1,localhost,root,,,,;
|
|
'connection con1'
|
|
connection con1;
|
|
SELECT @@global.innodb_table_locks;
|
|
@@global.innodb_table_locks
|
|
0
|
|
SELECT @@session.innodb_table_locks;
|
|
@@session.innodb_table_locks
|
|
0
|
|
disconnect con1;
|
|
'#--------------------FN_DYNVARS_048_02-------------------------#'
|
|
'----check when innodb_table_locks = ON and autocommit = OFF---'
|
|
'connect (con2,localhost,root,,,,)'
|
|
connect con2,localhost,root,,,,;
|
|
'connection default'
|
|
connection default;
|
|
DROP TABLE IF EXISTS t1;
|
|
CREATE TABLE t1 (a INT) ENGINE=INNODB;
|
|
SET @@autocommit = OFF;
|
|
SET @@innodb_table_locks = ON;
|
|
BEGIN;
|
|
INSERT INTO t1 VALUES(1);
|
|
SELECT * FROM t1 FOR UPDATE;
|
|
a
|
|
1
|
|
'CONNECTION con2'
|
|
connection con2;
|
|
SET @@innodb_table_locks = ON;
|
|
SET @@autocommit = OFF;
|
|
LOCK TABLES t1 WRITE;
|
|
'CONNECTION default'
|
|
connection default;
|
|
COMMIT;
|
|
'CONNECTION con2'
|
|
connection con2;
|
|
UNLOCK tables;
|
|
DROP TABLE t1;
|
|
disconnect con2;
|
|
connection default;
|
|
SET @@global.innodb_table_locks= @start_value;
|
|
SELECT @@global.innodb_table_locks;
|
|
@@global.innodb_table_locks
|
|
1
|