mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 06:44:16 +01:00
a5e248d402
- Updated slow_query_log_file_basic and general_log_file basis instead of the func version as the func version run good but the basic versions fail. - Sent innodb.test to dev@innodb.com. - variables.test has differences probably due to a bug in mtr or in the SET statement (see bug#39369). - general_log_file_basic.test and slow_query_log_file_bsaic.test have differences, which might be produced by the new mtr (see bug#38124).
40 lines
1 KiB
Text
40 lines
1 KiB
Text
'#--------------------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,,,,)'
|
|
'connection con1'
|
|
SELECT @@global.innodb_table_locks;
|
|
@@global.innodb_table_locks
|
|
0
|
|
SELECT @@session.innodb_table_locks;
|
|
@@session.innodb_table_locks
|
|
0
|
|
'#--------------------FN_DYNVARS_048_02-------------------------#'
|
|
'----check when innodb_table_locks = ON and autocommit = OFF---'
|
|
'connect (con2,localhost,root,,,,)'
|
|
'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'
|
|
SET @@innodb_table_locks = ON;
|
|
SET @@autocommit = OFF;
|
|
LOCK TABLES t1 WRITE;
|
|
'CONNECTION default'
|
|
COMMIT;
|
|
'CONNECTION con2'
|
|
UNLOCK tables;
|
|
DROP TABLE t1;
|
|
SET @@global.innodb_table_locks= @start_value;
|
|
SELECT @@global.innodb_table_locks;
|
|
@@global.innodb_table_locks
|
|
1
|