mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 11:57:38 +02:00
Merge 10.6 into 10.11
This commit is contained in:
commit
f87c7d1772
76 changed files with 207 additions and 47 deletions
|
|
@ -1,4 +1,6 @@
|
|||
SET @@session.default_storage_engine = 'InnoDB';
|
||||
SET @save_stats_persistent = @@GLOBAL.innodb_stats_persistent;
|
||||
SET GLOBAL innodb_stats_persistent = 0;
|
||||
SET default_storage_engine = 'InnoDB';
|
||||
drop table if exists t1;
|
||||
# Case 1. Partitioning by RANGE based on a non-stored generated column.
|
||||
CREATE TABLE t1 (
|
||||
|
|
@ -126,6 +128,7 @@ Warnings:
|
|||
Warning 1906 The value specified for generated column 'vd' in table 't1' has been ignored
|
||||
DROP TABLE t1;
|
||||
InnoDB 0 transactions not purged
|
||||
SET GLOBAL innodb_stats_persistent = @save_stats_persistent;
|
||||
DROP VIEW IF EXISTS v1,v2;
|
||||
DROP TABLE IF EXISTS t1,t2,t3;
|
||||
DROP PROCEDURE IF EXISTS p1;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
SET @save_dbug=@@GLOBAL.debug_dbug;
|
||||
CREATE TABLE t1(f1 INT NOT NULL, f2 int not null,
|
||||
f3 int generated always as (f2 * 2) VIRTUAL,
|
||||
primary key(f1), INDEX (f3))ENGINE=InnoDB;
|
||||
primary key(f1), INDEX (f3))ENGINE=InnoDB STATS_PERSISTENT=0;
|
||||
connect con1,localhost,root,,,;
|
||||
InnoDB 0 transactions not purged
|
||||
START TRANSACTION WITH CONSISTENT SNAPSHOT;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
SET @save_stats_persistent = @@GLOBAL.innodb_stats_persistent;
|
||||
SET GLOBAL innodb_stats_persistent = 0;
|
||||
connect purge_control,localhost,root;
|
||||
START TRANSACTION WITH CONSISTENT SNAPSHOT;
|
||||
connection default;
|
||||
|
|
@ -37,3 +39,4 @@ InnoDB 0 transactions not purged
|
|||
disconnect purge_control;
|
||||
connection default;
|
||||
drop table t1;
|
||||
SET GLOBAL innodb_stats_persistent = @save_stats_persistent;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
set default_storage_engine=innodb;
|
||||
SET @save_stats_persistent = @@GLOBAL.innodb_stats_persistent;
|
||||
SET GLOBAL innodb_stats_persistent = 0;
|
||||
CREATE TABLE `t` (
|
||||
`a` VARCHAR(100),
|
||||
`b` VARCHAR(100),
|
||||
|
|
@ -145,3 +147,4 @@ DROP TABLE t1;
|
|||
disconnect con1;
|
||||
connection default;
|
||||
SET DEBUG_SYNC=RESET;
|
||||
SET GLOBAL innodb_stats_persistent = @save_stats_persistent;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
SET @save_stats_persistent = @@GLOBAL.innodb_stats_persistent;
|
||||
SET GLOBAL innodb_stats_persistent = 0;
|
||||
#
|
||||
# Bug#21869656 UNDO LOG DOES NOT CONTAIN ENOUGH INFORMATION
|
||||
# ON INDEXED VIRTUAL COLUMNS
|
||||
|
|
@ -171,3 +173,4 @@ CHECK TABLE t EXTENDED;
|
|||
Table Op Msg_type Msg_text
|
||||
test.t check status OK
|
||||
DROP TABLE t;
|
||||
SET GLOBAL innodb_stats_persistent = @save_stats_persistent;
|
||||
|
|
|
|||
|
|
@ -29,7 +29,9 @@
|
|||
##### Storage engine to be tested
|
||||
# Set the session storage engine
|
||||
--source include/have_innodb.inc
|
||||
eval SET @@session.default_storage_engine = 'InnoDB';
|
||||
SET @save_stats_persistent = @@GLOBAL.innodb_stats_persistent;
|
||||
SET GLOBAL innodb_stats_persistent = 0;
|
||||
SET default_storage_engine = 'InnoDB';
|
||||
|
||||
##### Workarounds for known open engine specific bugs
|
||||
# none
|
||||
|
|
@ -58,6 +60,9 @@ REPLACE INTO t1 SELECT * FROM t1;
|
|||
DROP TABLE t1;
|
||||
|
||||
--source suite/innodb/include/wait_all_purged.inc
|
||||
|
||||
SET GLOBAL innodb_stats_persistent = @save_stats_persistent;
|
||||
|
||||
#------------------------------------------------------------------------------#
|
||||
# Cleanup
|
||||
--source suite/gcol/inc/gcol_cleanup.inc
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
SET @save_dbug=@@GLOBAL.debug_dbug;
|
||||
CREATE TABLE t1(f1 INT NOT NULL, f2 int not null,
|
||||
f3 int generated always as (f2 * 2) VIRTUAL,
|
||||
primary key(f1), INDEX (f3))ENGINE=InnoDB;
|
||||
primary key(f1), INDEX (f3))ENGINE=InnoDB STATS_PERSISTENT=0;
|
||||
connect(con1,localhost,root,,,);
|
||||
--source ../innodb/include/wait_all_purged.inc
|
||||
START TRANSACTION WITH CONSISTENT SNAPSHOT;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,8 @@
|
|||
--source include/have_innodb.inc
|
||||
|
||||
SET @save_stats_persistent = @@GLOBAL.innodb_stats_persistent;
|
||||
SET GLOBAL innodb_stats_persistent = 0;
|
||||
|
||||
connect (purge_control,localhost,root);
|
||||
START TRANSACTION WITH CONSISTENT SNAPSHOT;
|
||||
|
||||
|
|
@ -60,3 +63,5 @@ disconnect purge_control;
|
|||
|
||||
connection default;
|
||||
drop table t1;
|
||||
|
||||
SET GLOBAL innodb_stats_persistent = @save_stats_persistent;
|
||||
|
|
|
|||
|
|
@ -4,6 +4,10 @@
|
|||
--source include/count_sessions.inc
|
||||
|
||||
set default_storage_engine=innodb;
|
||||
# Ensure that the history list length will actually be decremented by purge.
|
||||
SET @save_stats_persistent = @@GLOBAL.innodb_stats_persistent;
|
||||
SET GLOBAL innodb_stats_persistent = 0;
|
||||
|
||||
CREATE TABLE `t` (
|
||||
`a` VARCHAR(100),
|
||||
`b` VARCHAR(100),
|
||||
|
|
@ -338,4 +342,6 @@ DROP TABLE t1;
|
|||
connection default;
|
||||
SET DEBUG_SYNC=RESET;
|
||||
|
||||
SET GLOBAL innodb_stats_persistent = @save_stats_persistent;
|
||||
|
||||
--source include/wait_until_count_sessions.inc
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
--source include/have_innodb.inc
|
||||
--source include/count_sessions.inc
|
||||
|
||||
SET @save_stats_persistent = @@GLOBAL.innodb_stats_persistent;
|
||||
SET GLOBAL innodb_stats_persistent = 0;
|
||||
|
||||
--echo #
|
||||
--echo # Bug#21869656 UNDO LOG DOES NOT CONTAIN ENOUGH INFORMATION
|
||||
--echo # ON INDEXED VIRTUAL COLUMNS
|
||||
|
|
@ -182,4 +185,6 @@ SET GLOBAL innodb_max_purge_lag_wait=0;
|
|||
CHECK TABLE t EXTENDED;
|
||||
DROP TABLE t;
|
||||
|
||||
SET GLOBAL innodb_stats_persistent = @save_stats_persistent;
|
||||
|
||||
--source include/wait_until_count_sessions.inc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue