mirror of
https://github.com/MariaDB/server.git
synced 2026-04-17 22:05:35 +02:00
Correcting "innodb_prefix_index_liftedlimit" failure for embedded mode run.
Separating out sub-test.
This commit is contained in:
parent
aca402b62b
commit
a483b5bfa9
4 changed files with 220 additions and 178 deletions
|
|
@ -26,7 +26,9 @@ set global innodb_file_format="Barracuda";
|
|||
set global innodb_file_per_table=1;
|
||||
set global innodb_large_prefix=1;
|
||||
|
||||
|
||||
-- disable_warnings
|
||||
DROP TABLE IF EXISTS worklog5743;
|
||||
-- enable_warnings
|
||||
#------------------------------------------------------------------------------
|
||||
# Prefix index with VARCHAR data type , primary/secondary index and DML ops
|
||||
CREATE TABLE worklog5743 (
|
||||
|
|
@ -848,97 +850,6 @@ COMMIT;
|
|||
DROP TABLE worklog5743;
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# 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;
|
||||
|
||||
--echo "In connection 1"
|
||||
--connect (con1,localhost,root,,)
|
||||
SELECT col_1_text = REPEAT("a", 3500) , col_2_text = REPEAT("o", 3500) FROM
|
||||
worklog5743;
|
||||
SELECT COUNT(*) FROM worklog5743;
|
||||
|
||||
|
||||
--echo "In connection 2"
|
||||
--connect (con2,localhost,root,,)
|
||||
START TRANSACTION;
|
||||
INSERT INTO worklog5743 VALUES(REPEAT("b", 3500) , REPEAT("o", 3500));
|
||||
|
||||
|
||||
--echo "In connection 1"
|
||||
--connection con1
|
||||
SELECT col_1_text = REPEAT("a", 3500) , col_2_text = REPEAT("o", 3500) FROM
|
||||
worklog5743;
|
||||
SELECT COUNT(*) FROM worklog5743;
|
||||
START TRANSACTION;
|
||||
|
||||
|
||||
--echo "In connection default ....restarting the server"
|
||||
--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
|
||||
|
||||
--echo "In connection 1"
|
||||
--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;
|
||||
|
||||
--echo "In connection default ....restarting the server"
|
||||
--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
|
||||
|
||||
--echo "In connection 1"
|
||||
--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;
|
||||
|
||||
--echo "In connection default ....restarting the server"
|
||||
--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;
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Reset variables at server was restarted in previous case
|
||||
set global innodb_file_format="Barracuda";
|
||||
set global innodb_file_per_table=1;
|
||||
set global innodb_large_prefix=1;
|
||||
#------------------------------------------------------------------------------
|
||||
# Select queries on prefix index column as index will be used in queries.
|
||||
# Use few select functions , join condition , subqueries.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue