mirror of
https://github.com/MariaDB/server.git
synced 2025-08-23 03:54:27 +03:00
The following options will be removed: innodb_file_format innodb_file_format_check innodb_file_format_max innodb_large_prefix They have been deprecated in MySQL 5.7.7 (and MariaDB 10.2.2) in WL#7703. The file_format column in two INFORMATION_SCHEMA tables will be removed: innodb_sys_tablespaces innodb_sys_tables Code to update the file format tag at the end of page 0:5 (TRX_SYS_PAGE in the InnoDB system tablespace) will be removed. When initializing a new database, the bytes will remain 0. All references to the Barracuda file format will be removed. Some references to the Antelope file format (meaning ROW_FORMAT=REDUNDANT or ROW_FORMAT=COMPACT) will remain. This basically ports WL#7704 from MySQL 8.0.0 to MariaDB 10.3.1: commit 4a69dc2a95995501ed92d59a1de74414a38540c6 Author: Marko Mäkelä <marko.makela@oracle.com> Date: Wed Mar 11 22:19:49 2015 +0200
96 lines
3.4 KiB
Plaintext
96 lines
3.4 KiB
Plaintext
--source include/have_innodb.inc
|
|
######## suite/innodb/t/innodb_prefix_iindex_restart_server.test #####
|
|
# #
|
|
# Testcase for worklog WL#5743: Lift the limit of index key prefixes #
|
|
# Test scenario : Stop the server in between when prefix index are #
|
|
# created and see if state is preserved after restart #
|
|
# #
|
|
# Creation: #
|
|
# 2011-06-02 Implemented this test as part of WL#5743 #
|
|
# #
|
|
######################################################################
|
|
|
|
# Don't test this under valgrind, memory leaks will occur due restart
|
|
--source include/not_valgrind.inc
|
|
# Test restart the server and "shutdown_server" looks for pid file
|
|
# which is not there with embedded mode
|
|
--source include/not_embedded.inc
|
|
|
|
#------------------------------------------------------------------------------
|
|
# Stop the server in between when prefix index are created and see if state is
|
|
# correct when server is restarted.
|
|
# Server is restarted at differnt points.
|
|
|
|
CREATE TABLE worklog5743 (
|
|
col_1_text TEXT(4000) , col_2_text TEXT(4000) ,
|
|
PRIMARY KEY (col_1_text(3072))
|
|
) ROW_FORMAT=DYNAMIC, engine = innodb;
|
|
INSERT INTO worklog5743 VALUES(REPEAT("a", 3500) , REPEAT("o", 3500));
|
|
SELECT col_1_text = REPEAT("a", 3500) , col_2_text = REPEAT("o", 3500) FROM
|
|
worklog5743;
|
|
|
|
--connect (con1,localhost,root,,)
|
|
SELECT col_1_text = REPEAT("a", 3500) , col_2_text = REPEAT("o", 3500) FROM
|
|
worklog5743;
|
|
SELECT COUNT(*) FROM worklog5743;
|
|
|
|
|
|
--connect (con2,localhost,root,,)
|
|
START TRANSACTION;
|
|
INSERT INTO worklog5743 VALUES(REPEAT("b", 3500) , REPEAT("o", 3500));
|
|
|
|
|
|
--connection con1
|
|
SELECT col_1_text = REPEAT("a", 3500) , col_2_text = REPEAT("o", 3500) FROM
|
|
worklog5743;
|
|
SELECT COUNT(*) FROM worklog5743;
|
|
START TRANSACTION;
|
|
|
|
|
|
--connection default
|
|
# Restart the server
|
|
-- source include/restart_mysqld.inc
|
|
SELECT COUNT(*) FROM worklog5743;
|
|
SELECT col_1_text = REPEAT("a", 3500) , col_2_text = REPEAT("o", 3500) FROM
|
|
worklog5743;
|
|
|
|
--disconnect con1
|
|
--disconnect con2
|
|
|
|
--connect (con1,localhost,root,,)
|
|
SELECT col_1_text = REPEAT("a", 3500) , col_2_text = REPEAT("o", 3500) FROM
|
|
worklog5743;
|
|
SELECT COUNT(*) FROM worklog5743;
|
|
START TRANSACTION;
|
|
INSERT INTO worklog5743 VALUES(REPEAT("b", 3500) , REPEAT("o", 3500));
|
|
DELETE FROM worklog5743 WHERE col_1_text = REPEAT("b", 3500);
|
|
SELECT col_1_text = REPEAT("a", 3500) , col_2_text = REPEAT("o", 3500) FROM
|
|
worklog5743;
|
|
|
|
--connection default
|
|
# Restart the server
|
|
-- source include/restart_mysqld.inc
|
|
SELECT COUNT(*) FROM worklog5743;
|
|
SELECT col_1_text = REPEAT("a", 3500) , col_2_text = REPEAT("o", 3500) FROM
|
|
worklog5743;
|
|
|
|
--disconnect con1
|
|
|
|
--connect (con2,localhost,root,,)
|
|
SELECT col_1_text = REPEAT("a", 3500) , col_2_text = REPEAT("o", 3500) FROM
|
|
worklog5743;
|
|
SELECT COUNT(*) FROM worklog5743;
|
|
START TRANSACTION;
|
|
UPDATE worklog5743 SET col_1_text = REPEAT("b", 3500) WHERE col_1_text = REPEAT("a", 3500);
|
|
SELECT col_1_text = REPEAT("b", 3500) , col_2_text = REPEAT("o", 3500) FROM
|
|
worklog5743;
|
|
|
|
--connection default
|
|
# Restart the server
|
|
-- source include/restart_mysqld.inc
|
|
SELECT COUNT(*) FROM worklog5743;
|
|
SELECT col_1_text = REPEAT("a", 3500) , col_2_text = REPEAT("o", 3500) FROM
|
|
worklog5743;
|
|
|
|
DROP TABLE worklog5743;
|