Commit c18bf481 authored by Alice Sherepa's avatar Alice Sherepa

innodb suite <innodb-tablespaces

parent f37ca394
...@@ -42,6 +42,8 @@ SELECT SLEEP(30); ...@@ -42,6 +42,8 @@ SELECT SLEEP(30);
SLEEP(30) SLEEP(30)
0 0
COMMIT; COMMIT;
FOUND /INNODB MONITOR OUTPUT/ in innodb-status-output.err
NOT FOUND /SELECT SLEEP.*\nTABLE LOCK.*\nRECORD LOCKS space id/ in innodb-status-output.err
BEGIN; BEGIN;
SELECT * FROM t FOR UPDATE; SELECT * FROM t FOR UPDATE;
a a
...@@ -51,6 +53,7 @@ SELECT SLEEP(30); ...@@ -51,6 +53,7 @@ SELECT SLEEP(30);
SLEEP(30) SLEEP(30)
0 0
COMMIT; COMMIT;
FOUND /ready for connections.*\nVersion:.*\n.*Normal shutdown/ in innodb-status-output.err
BEGIN; BEGIN;
SELECT * FROM t FOR UPDATE; SELECT * FROM t FOR UPDATE;
a a
...@@ -60,4 +63,6 @@ SELECT SLEEP(30); ...@@ -60,4 +63,6 @@ SELECT SLEEP(30);
SLEEP(30) SLEEP(30)
0 0
COMMIT; COMMIT;
FOUND /INNODB MONITOR OUTPUT/ in innodb-status-output.err
NOT FOUND /SELECT SLEEP.*\n------/ in innodb-status-output.err
DROP TABLE t; DROP TABLE t;
...@@ -8,11 +8,12 @@ SET default_storage_engine=InnoDB; ...@@ -8,11 +8,12 @@ SET default_storage_engine=InnoDB;
# #
SET SESSION innodb_strict_mode = ON; SET SESSION innodb_strict_mode = ON;
CREATE TABLE t1 (a int KEY, b text) INDEX DIRECTORY='MYSQL_TMP_DIR/alt_dir'; CREATE TABLE t1 (a int KEY, b text) INDEX DIRECTORY='MYSQL_TMP_DIR/alt_dir';
ERROR HY000: Table storage engine for 't1' doesn't have this option ERROR HY000: Can't create table `test`.`t1` (errno: 140 "Wrong create options")
SHOW WARNINGS; SHOW WARNINGS;
Level Code Message Level Code Message
Warning 1478 InnoDB: INDEX DIRECTORY is not supported Warning 1478 InnoDB: INDEX DIRECTORY is not supported
Error 1031 Table storage engine for 't1' doesn't have this option Error 1005 Can't create table `test`.`t1` (errno: 140 "Wrong create options")
Warning 1030 Got error 140 "Wrong create options" from storage engine InnoDB
# #
# Without strict mode, INDEX DIRECTORY is just ignored # Without strict mode, INDEX DIRECTORY is just ignored
# #
...@@ -37,11 +38,12 @@ DROP TABLE t1; ...@@ -37,11 +38,12 @@ DROP TABLE t1;
SET SESSION innodb_strict_mode = ON; SET SESSION innodb_strict_mode = ON;
SET GLOBAL innodb_file_per_table=OFF; SET GLOBAL innodb_file_per_table=OFF;
CREATE TABLE t1 (a int KEY, b text) DATA DIRECTORY='MYSQL_TMP_DIR/alt_dir'; CREATE TABLE t1 (a int KEY, b text) DATA DIRECTORY='MYSQL_TMP_DIR/alt_dir';
ERROR HY000: Table storage engine for 't1' doesn't have this option ERROR HY000: Can't create table `test`.`t1` (errno: 140 "Wrong create options")
SHOW WARNINGS; SHOW WARNINGS;
Level Code Message Level Code Message
Warning 1478 InnoDB: DATA DIRECTORY requires innodb_file_per_table. Warning 1478 InnoDB: DATA DIRECTORY requires innodb_file_per_table.
Error 1031 Table storage engine for 't1' doesn't have this option Error 1005 Can't create table `test`.`t1` (errno: 140 "Wrong create options")
Warning 1030 Got error 140 "Wrong create options" from storage engine InnoDB
# #
# Without strict mode, DATA DIRECTORY without innodb_file_per_table=ON is just ignored. # Without strict mode, DATA DIRECTORY without innodb_file_per_table=ON is just ignored.
# #
...@@ -105,9 +107,6 @@ ORDER BY name; ...@@ -105,9 +107,6 @@ ORDER BY name;
name file_format row_format name file_format row_format
mysql/innodb_index_stats Antelope Compact or Redundant mysql/innodb_index_stats Antelope Compact or Redundant
mysql/innodb_table_stats Antelope Compact or Redundant mysql/innodb_table_stats Antelope Compact or Redundant
mysql/slave_master_info Antelope Compact or Redundant
mysql/slave_relay_log_info Antelope Compact or Redundant
mysql/slave_worker_info Antelope Compact or Redundant
test/t1 Antelope Compact or Redundant test/t1 Antelope Compact or Redundant
SELECT path FROM information_schema.innodb_sys_datafiles SELECT path FROM information_schema.innodb_sys_datafiles
WHERE path LIKE '%test%' ORDER BY space; WHERE path LIKE '%test%' ORDER BY space;
...@@ -127,9 +126,6 @@ ORDER BY name; ...@@ -127,9 +126,6 @@ ORDER BY name;
name file_format row_format name file_format row_format
mysql/innodb_index_stats Antelope Compact or Redundant mysql/innodb_index_stats Antelope Compact or Redundant
mysql/innodb_table_stats Antelope Compact or Redundant mysql/innodb_table_stats Antelope Compact or Redundant
mysql/slave_master_info Antelope Compact or Redundant
mysql/slave_relay_log_info Antelope Compact or Redundant
mysql/slave_worker_info Antelope Compact or Redundant
SELECT path FROM information_schema.innodb_sys_datafiles SELECT path FROM information_schema.innodb_sys_datafiles
WHERE path LIKE '%test%' ORDER BY space; WHERE path LIKE '%test%' ORDER BY space;
path path
...@@ -159,9 +155,6 @@ ORDER BY name; ...@@ -159,9 +155,6 @@ ORDER BY name;
name file_format row_format name file_format row_format
mysql/innodb_index_stats Antelope Compact or Redundant mysql/innodb_index_stats Antelope Compact or Redundant
mysql/innodb_table_stats Antelope Compact or Redundant mysql/innodb_table_stats Antelope Compact or Redundant
mysql/slave_master_info Antelope Compact or Redundant
mysql/slave_relay_log_info Antelope Compact or Redundant
mysql/slave_worker_info Antelope Compact or Redundant
test/t1 Antelope Compact or Redundant test/t1 Antelope Compact or Redundant
SELECT path FROM information_schema.innodb_sys_datafiles SELECT path FROM information_schema.innodb_sys_datafiles
WHERE path LIKE '%test%' ORDER BY space; WHERE path LIKE '%test%' ORDER BY space;
...@@ -191,9 +184,6 @@ ORDER BY name; ...@@ -191,9 +184,6 @@ ORDER BY name;
name file_format row_format name file_format row_format
mysql/innodb_index_stats Antelope Compact or Redundant mysql/innodb_index_stats Antelope Compact or Redundant
mysql/innodb_table_stats Antelope Compact or Redundant mysql/innodb_table_stats Antelope Compact or Redundant
mysql/slave_master_info Antelope Compact or Redundant
mysql/slave_relay_log_info Antelope Compact or Redundant
mysql/slave_worker_info Antelope Compact or Redundant
test/t1 Antelope Compact or Redundant test/t1 Antelope Compact or Redundant
SELECT path FROM information_schema.innodb_sys_datafiles SELECT path FROM information_schema.innodb_sys_datafiles
WHERE path LIKE '%test%' ORDER BY space; WHERE path LIKE '%test%' ORDER BY space;
...@@ -224,9 +214,6 @@ ORDER BY name; ...@@ -224,9 +214,6 @@ ORDER BY name;
name file_format row_format name file_format row_format
mysql/innodb_index_stats Antelope Compact or Redundant mysql/innodb_index_stats Antelope Compact or Redundant
mysql/innodb_table_stats Antelope Compact or Redundant mysql/innodb_table_stats Antelope Compact or Redundant
mysql/slave_master_info Antelope Compact or Redundant
mysql/slave_relay_log_info Antelope Compact or Redundant
mysql/slave_worker_info Antelope Compact or Redundant
test/t2 Antelope Compact or Redundant test/t2 Antelope Compact or Redundant
SELECT path FROM information_schema.innodb_sys_datafiles SELECT path FROM information_schema.innodb_sys_datafiles
WHERE path LIKE '%test%' ORDER BY space; WHERE path LIKE '%test%' ORDER BY space;
...@@ -257,9 +244,6 @@ ORDER BY name; ...@@ -257,9 +244,6 @@ ORDER BY name;
name file_format row_format name file_format row_format
mysql/innodb_index_stats Antelope Compact or Redundant mysql/innodb_index_stats Antelope Compact or Redundant
mysql/innodb_table_stats Antelope Compact or Redundant mysql/innodb_table_stats Antelope Compact or Redundant
mysql/slave_master_info Antelope Compact or Redundant
mysql/slave_relay_log_info Antelope Compact or Redundant
mysql/slave_worker_info Antelope Compact or Redundant
test/t2 Antelope Compact or Redundant test/t2 Antelope Compact or Redundant
test/t3 Antelope Compact or Redundant test/t3 Antelope Compact or Redundant
SELECT path FROM information_schema.innodb_sys_datafiles SELECT path FROM information_schema.innodb_sys_datafiles
...@@ -286,9 +270,6 @@ ORDER BY name; ...@@ -286,9 +270,6 @@ ORDER BY name;
name file_format row_format name file_format row_format
mysql/innodb_index_stats Antelope Compact or Redundant mysql/innodb_index_stats Antelope Compact or Redundant
mysql/innodb_table_stats Antelope Compact or Redundant mysql/innodb_table_stats Antelope Compact or Redundant
mysql/slave_master_info Antelope Compact or Redundant
mysql/slave_relay_log_info Antelope Compact or Redundant
mysql/slave_worker_info Antelope Compact or Redundant
SELECT path FROM information_schema.innodb_sys_datafiles SELECT path FROM information_schema.innodb_sys_datafiles
WHERE path LIKE '%test%' ORDER BY space; WHERE path LIKE '%test%' ORDER BY space;
path path
...@@ -320,11 +301,12 @@ ERROR HY000: Incorrect arguments to DATA DIRECTORY ...@@ -320,11 +301,12 @@ ERROR HY000: Incorrect arguments to DATA DIRECTORY
# TEMPORARY tables are incompatible with DATA DIRECTORY # TEMPORARY tables are incompatible with DATA DIRECTORY
SET SESSION innodb_strict_mode = ON; SET SESSION innodb_strict_mode = ON;
CREATE TEMPORARY TABLE t1 (a int KEY, b text) engine=InnoDB DATA DIRECTORY='MYSQL_TMP_DIR/alt_dir'; CREATE TEMPORARY TABLE t1 (a int KEY, b text) engine=InnoDB DATA DIRECTORY='MYSQL_TMP_DIR/alt_dir';
ERROR HY000: Table storage engine for 't1' doesn't have this option ERROR HY000: Can't create table `test`.`t1` (errno: 140 "Wrong create options")
SHOW WARNINGS; SHOW WARNINGS;
Level Code Message Level Code Message
Warning 1478 InnoDB: DATA DIRECTORY cannot be used for TEMPORARY tables. Warning 1478 InnoDB: DATA DIRECTORY cannot be used for TEMPORARY tables.
Error 1031 Table storage engine for 't1' doesn't have this option Error 1005 Can't create table `test`.`t1` (errno: 140 "Wrong create options")
Warning 1030 Got error 140 "Wrong create options" from storage engine InnoDB
SET SESSION innodb_strict_mode = OFF; SET SESSION innodb_strict_mode = OFF;
CREATE TEMPORARY TABLE t1 (a int KEY, b text) engine=InnoDB DATA DIRECTORY='MYSQL_TMP_DIR/alt_dir'; CREATE TEMPORARY TABLE t1 (a int KEY, b text) engine=InnoDB DATA DIRECTORY='MYSQL_TMP_DIR/alt_dir';
Warnings: Warnings:
...@@ -444,9 +426,6 @@ ORDER BY name; ...@@ -444,9 +426,6 @@ ORDER BY name;
name file_format row_format name file_format row_format
mysql/innodb_index_stats Antelope Compact or Redundant mysql/innodb_index_stats Antelope Compact or Redundant
mysql/innodb_table_stats Antelope Compact or Redundant mysql/innodb_table_stats Antelope Compact or Redundant
mysql/slave_master_info Antelope Compact or Redundant
mysql/slave_relay_log_info Antelope Compact or Redundant
mysql/slave_worker_info Antelope Compact or Redundant
test/emp#p#east Antelope Compact or Redundant test/emp#p#east Antelope Compact or Redundant
test/emp#p#north Antelope Compact or Redundant test/emp#p#north Antelope Compact or Redundant
test/emp#p#west Antelope Compact or Redundant test/emp#p#west Antelope Compact or Redundant
...@@ -501,9 +480,6 @@ ORDER BY name; ...@@ -501,9 +480,6 @@ ORDER BY name;
name file_format row_format name file_format row_format
mysql/innodb_index_stats Antelope Compact or Redundant mysql/innodb_index_stats Antelope Compact or Redundant
mysql/innodb_table_stats Antelope Compact or Redundant mysql/innodb_table_stats Antelope Compact or Redundant
mysql/slave_master_info Antelope Compact or Redundant
mysql/slave_relay_log_info Antelope Compact or Redundant
mysql/slave_worker_info Antelope Compact or Redundant
test/emp#p#east Antelope Compact or Redundant test/emp#p#east Antelope Compact or Redundant
test/emp#p#north Antelope Compact or Redundant test/emp#p#north Antelope Compact or Redundant
SELECT path FROM information_schema.innodb_sys_datafiles SELECT path FROM information_schema.innodb_sys_datafiles
...@@ -557,9 +533,6 @@ ORDER BY name; ...@@ -557,9 +533,6 @@ ORDER BY name;
name file_format row_format name file_format row_format
mysql/innodb_index_stats Antelope Compact or Redundant mysql/innodb_index_stats Antelope Compact or Redundant
mysql/innodb_table_stats Antelope Compact or Redundant mysql/innodb_table_stats Antelope Compact or Redundant
mysql/slave_master_info Antelope Compact or Redundant
mysql/slave_relay_log_info Antelope Compact or Redundant
mysql/slave_worker_info Antelope Compact or Redundant
test/emp#p#east Antelope Compact or Redundant test/emp#p#east Antelope Compact or Redundant
test/emp#p#north Antelope Compact or Redundant test/emp#p#north Antelope Compact or Redundant
test/emp#p#west Antelope Compact or Redundant test/emp#p#west Antelope Compact or Redundant
...@@ -617,9 +590,6 @@ ORDER BY name; ...@@ -617,9 +590,6 @@ ORDER BY name;
name file_format row_format name file_format row_format
mysql/innodb_index_stats Antelope Compact or Redundant mysql/innodb_index_stats Antelope Compact or Redundant
mysql/innodb_table_stats Antelope Compact or Redundant mysql/innodb_table_stats Antelope Compact or Redundant
mysql/slave_master_info Antelope Compact or Redundant
mysql/slave_relay_log_info Antelope Compact or Redundant
mysql/slave_worker_info Antelope Compact or Redundant
test/emp#p#east Antelope Compact or Redundant test/emp#p#east Antelope Compact or Redundant
test/emp#p#north Antelope Compact or Redundant test/emp#p#north Antelope Compact or Redundant
test/emp#p#west Antelope Compact or Redundant test/emp#p#west Antelope Compact or Redundant
......
...@@ -11,7 +11,7 @@ let $MYSQLD_DATADIR= `select @@datadir`; ...@@ -11,7 +11,7 @@ let $MYSQLD_DATADIR= `select @@datadir`;
LET $innodb_file_format_orig=`select @@innodb_file_format`; LET $innodb_file_format_orig=`select @@innodb_file_format`;
LET $innodb_file_per_table_orig=`select @@innodb_file_per_table`; LET $innodb_file_per_table_orig=`select @@innodb_file_per_table`;
--enable_query_log --enable_query_log
SELECT table_id, name FROM information_schema.innodb_sys_tables;
# The IDs of mysql.innodb_table_stats and mysql.innodb_index_stats are # The IDs of mysql.innodb_table_stats and mysql.innodb_index_stats are
# unpredictable, probably they depend on whether mtr has created the # unpredictable, probably they depend on whether mtr has created the
# database for this test from scratch or is using a previously created # database for this test from scratch or is using a previously created
......
--innodb-sys-tablespaces
--innodb-sys-datafiles
\ No newline at end of file
...@@ -28,7 +28,7 @@ LET $innodb_strict_mode_orig=`select @@session.innodb_strict_mode`; ...@@ -28,7 +28,7 @@ LET $innodb_strict_mode_orig=`select @@session.innodb_strict_mode`;
--echo # --echo #
SET SESSION innodb_strict_mode = ON; SET SESSION innodb_strict_mode = ON;
--replace_result $MYSQL_TMP_DIR MYSQL_TMP_DIR --replace_result $MYSQL_TMP_DIR MYSQL_TMP_DIR
--error ER_ILLEGAL_HA --error ER_CANT_CREATE_TABLE
eval CREATE TABLE t1 (a int KEY, b text) $index_directory_clause; eval CREATE TABLE t1 (a int KEY, b text) $index_directory_clause;
SHOW WARNINGS; SHOW WARNINGS;
...@@ -48,7 +48,7 @@ DROP TABLE t1; ...@@ -48,7 +48,7 @@ DROP TABLE t1;
SET SESSION innodb_strict_mode = ON; SET SESSION innodb_strict_mode = ON;
SET GLOBAL innodb_file_per_table=OFF; SET GLOBAL innodb_file_per_table=OFF;
--replace_result $MYSQL_TMP_DIR MYSQL_TMP_DIR --replace_result $MYSQL_TMP_DIR MYSQL_TMP_DIR
--error ER_ILLEGAL_HA --error ER_CANT_CREATE_TABLE
eval CREATE TABLE t1 (a int KEY, b text) $data_directory_clause; eval CREATE TABLE t1 (a int KEY, b text) $data_directory_clause;
SHOW WARNINGS; SHOW WARNINGS;
...@@ -239,7 +239,7 @@ eval CREATE TABLE t1 (a int KEY, b text) DATA DIRECTORY '$MYSQLD_DATADIR/test'; ...@@ -239,7 +239,7 @@ eval CREATE TABLE t1 (a int KEY, b text) DATA DIRECTORY '$MYSQLD_DATADIR/test';
--echo # TEMPORARY tables are incompatible with DATA DIRECTORY --echo # TEMPORARY tables are incompatible with DATA DIRECTORY
SET SESSION innodb_strict_mode = ON; SET SESSION innodb_strict_mode = ON;
--replace_result $MYSQL_TMP_DIR MYSQL_TMP_DIR --replace_result $MYSQL_TMP_DIR MYSQL_TMP_DIR
--error ER_ILLEGAL_HA --error ER_CANT_CREATE_TABLE
eval CREATE TEMPORARY TABLE t1 (a int KEY, b text) engine=InnoDB $data_directory_clause; eval CREATE TEMPORARY TABLE t1 (a int KEY, b text) engine=InnoDB $data_directory_clause;
SHOW WARNINGS; SHOW WARNINGS;
SET SESSION innodb_strict_mode = OFF; SET SESSION innodb_strict_mode = OFF;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment