1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Merge 10.6 into 10.11

This commit is contained in:
Marko Mäkelä
2025-01-08 12:51:26 +02:00
327 changed files with 1921 additions and 980 deletions

View File

@ -31,7 +31,7 @@ ENDIF()
# in RPM's: # in RPM's:
#set(CPACK_RPM_SPEC_MORE_DEFINE "%define __spec_install_post /bin/true") #set(CPACK_RPM_SPEC_MORE_DEFINE "%define __spec_install_post /bin/true")
FOREACH(p CMP0022 CMP0046 CMP0040 CMP0048 CMP0054 CMP0074 CMP0075 CMP0069 CMP0135) FOREACH(p CMP0022 CMP0046 CMP0040 CMP0048 CMP0054 CMP0067 CMP0074 CMP0075 CMP0069 CMP0135)
IF(POLICY ${p}) IF(POLICY ${p})
CMAKE_POLICY(SET ${p} NEW) CMAKE_POLICY(SET ${p} NEW)
ENDIF() ENDIF()

View File

@ -5285,6 +5285,9 @@ put_info(const char *str,INFO_TYPE info_type, uint error, const char *sqlstate)
} }
if (!opt_silent || info_type == INFO_ERROR) if (!opt_silent || info_type == INFO_ERROR)
{ {
report_progress_end();
fflush(stdout);
if (!inited) if (!inited)
{ {
#ifdef HAVE_SETUPTERM #ifdef HAVE_SETUPTERM

View File

@ -457,9 +457,12 @@ bool get_mysql_vars(MYSQL *connection)
msg("Using server version %s", version_var); msg("Using server version %s", version_var);
if (!(ret= detect_mysql_capabilities_for_backup())) if (opt_galera_info && !have_galera_enabled)
{ {
goto out; msg("--galera-info is specified on the command "
"line, but the server does not support Galera "
"replication. Ignoring the option.");
opt_galera_info= false;
} }
/* make sure datadir value is the same in configuration file */ /* make sure datadir value is the same in configuration file */
@ -552,30 +555,6 @@ out:
return (ret); return (ret);
} }
/*********************************************************************//**
Query the server to find out what backup capabilities it supports.
@return true on success. */
bool
detect_mysql_capabilities_for_backup()
{
/* do some sanity checks */
if (opt_galera_info && !have_galera_enabled) {
msg("--galera-info is specified on the command "
"line, but the server does not support Galera "
"replication. Ignoring the option.");
opt_galera_info = false;
}
if (opt_slave_info && have_multi_threaded_slave &&
!have_gtid_slave) {
msg("The --slave-info option requires GTID enabled for a "
"multi-threaded slave.");
return(false);
}
return(true);
}
static static
bool bool
select_incremental_lsn_from_history(lsn_t *incremental_lsn) select_incremental_lsn_from_history(lsn_t *incremental_lsn)

View File

@ -43,9 +43,6 @@ backup_cleanup();
bool bool
get_mysql_vars(MYSQL *connection); get_mysql_vars(MYSQL *connection);
bool
detect_mysql_capabilities_for_backup();
MYSQL * MYSQL *
xb_mysql_connect(); xb_mysql_connect();

View File

@ -186,6 +186,7 @@ xb_fil_cur_open(
} }
#else #else
err = fstat(cursor->file.m_file, &cursor->statinfo); err = fstat(cursor->file.m_file, &cursor->statinfo);
MSAN_STAT_WORKAROUND(&cursor->statinfo);
#endif #endif
if (max_file_size < (ulonglong)cursor->statinfo.st_size) { if (max_file_size < (ulonglong)cursor->statinfo.st_size) {
cursor->statinfo.st_size = (ulonglong)max_file_size; cursor->statinfo.st_size = (ulonglong)max_file_size;

View File

@ -4158,6 +4158,7 @@ next_file:
return(-1); return(-1);
} }
MSAN_STAT_WORKAROUND(&statinfo);
info->size = statinfo.st_size; info->size = statinfo.st_size;
if (S_ISDIR(statinfo.st_mode)) { if (S_ISDIR(statinfo.st_mode)) {
@ -6857,7 +6858,8 @@ error:
srv_max_dirty_pages_pct_lwm = srv_max_buf_pool_modified_pct; srv_max_dirty_pages_pct_lwm = srv_max_buf_pool_modified_pct;
} }
if (innodb_init()) { recv_sys.recovery_on = false;
if (innodb_init()) {
goto error; goto error;
} }

View File

@ -105,6 +105,7 @@ typedef struct st_heap_block
uint recbuffer; /* Length of one saved record */ uint recbuffer; /* Length of one saved record */
ulong records_in_block; /* Records in one heap-block */ ulong records_in_block; /* Records in one heap-block */
ulong last_allocated; /* number of records there is allocated space for */ ulong last_allocated; /* number of records there is allocated space for */
size_t alloc_size; /* Allocate blocks of this size */
} HP_BLOCK; } HP_BLOCK;
struct st_heap_info; /* For reference */ struct st_heap_info; /* For reference */

View File

@ -678,10 +678,10 @@ typedef SOCKET_SIZE_TYPE size_socket;
*/ */
#define IO_SIZE 4096U #define IO_SIZE 4096U
/* /*
How much overhead does malloc have. The code often allocates How much overhead does malloc/my_malloc have. The code often allocates
something like 1024-MALLOC_OVERHEAD bytes something like 1024-MALLOC_OVERHEAD bytes
*/ */
#define MALLOC_OVERHEAD 8 #define MALLOC_OVERHEAD (8+24)
/* get memory in huncs */ /* get memory in huncs */
#define ONCE_ALLOC_INIT (uint) 4096 #define ONCE_ALLOC_INIT (uint) 4096

View File

@ -879,6 +879,7 @@ extern void my_free_lock(void *ptr);
#define my_free_lock(A) my_free((A)) #define my_free_lock(A) my_free((A))
#endif #endif
#define alloc_root_inited(A) ((A)->min_malloc != 0) #define alloc_root_inited(A) ((A)->min_malloc != 0)
#define DEFAULT_ROOT_BLOCK_SIZE 1024
#define clear_alloc_root(A) do { (A)->free= (A)->used= (A)->pre_alloc= 0; (A)->min_malloc=0;} while(0) #define clear_alloc_root(A) do { (A)->free= (A)->used= (A)->pre_alloc= 0; (A)->min_malloc=0;} while(0)
extern void init_alloc_root(PSI_memory_key key, MEM_ROOT *mem_root, extern void init_alloc_root(PSI_memory_key key, MEM_ROOT *mem_root,
size_t block_size, size_t pre_alloc_size, size_t block_size, size_t pre_alloc_size,

View File

@ -0,0 +1,52 @@
/* Copyright (c) 2013, 2018, MariaDB
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA */
#ifndef MYSQL_SERVICE_LOG_WARNINGS
#define MYSQL_SERVICE_LOG_WARNINGS
/**
@file
This service provides access to the log warning level for the
current session.
thd_log_warnings(thd)
@return thd->log_warnings
*/
#ifdef __cplusplus
extern "C" {
#endif
extern struct thd_log_warnings_service_st {
void *(*thd_log_warnings)(MYSQL_THD);
} *thd_log_warnings_service;
#ifdef MYSQL_DYNAMIC_PLUGIN
# define thd_log_warnings(THD) thd_log_warnings_service->thd_log_warnings(THD)
#else
/**
MDL_context accessor
@param thd the current session
@return pointer to thd->mdl_context
*/
int thd_log_warnings(MYSQL_THD thd);
#endif
#ifdef __cplusplus
}
#endif
#endif

View File

@ -454,9 +454,8 @@ sub mtr_report_stats ($$$$) {
# Print info about reporting the error # Print info about reporting the error
print print
"The log files in var/log may give you some hint of what went wrong.\n\n", "The log files in var/log may give you some hint of what went wrong.\n\n",
"If you want to report this error, please read first ", "If you want to report this error, MariaDB's bug tracker is found at\n",
"the documentation\n", "https://jira.mariadb.org\n\n";
"at http://dev.mysql.com/doc/mysql/en/mysql-test-suite.html\n\n";
} }
else else

View File

@ -198,9 +198,8 @@ sub mtr_report_stats ($) {
print print
"The log files in var/log may give you some hint\n", "The log files in var/log may give you some hint\n",
"of what went wrong.\n", "of what went wrong.\n",
"If you want to report this error, please read first ", "If you want to report this error, MariaDB's bug tracker is found at\n",
"the documentation at\n", "https://jira.mariadb.org\n"
"http://dev.mysql.com/doc/mysql/en/mysql-test-suite.html\n";
} }
if (!$::opt_extern) if (!$::opt_extern)
{ {

View File

@ -1,5 +1,5 @@
--- main/alter_table_combinations.result 2022-05-24 17:16:56.769146869 +0200 --- main/alter_table_combinations.result
+++ main/alter_table_combinations.reject 2022-05-24 17:25:20.847126357 +0200 +++ main/alter_table_combinations.reject
@@ -173,8 +173,7 @@ @@ -173,8 +173,7 @@
t3 CREATE TABLE `t3` ( t3 CREATE TABLE `t3` (
`a` int(11) DEFAULT NULL, `a` int(11) DEFAULT NULL,

View File

@ -1,5 +1,5 @@
--- main/alter_table_combinations.result 2022-05-24 17:16:56.769146869 +0200 --- main/alter_table_combinations.result
+++ main/alter_table_combinations.reject 2022-05-24 17:25:01.216127156 +0200 +++ main/alter_table_combinations.reject
@@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@
alter table t1 change x xx int, algorithm=inplace; alter table t1 change x xx int, algorithm=inplace;
check table t1; check table t1;

View File

@ -96,6 +96,8 @@ drop view v1;
create table t1 (user_id char(64) character set utf8); create table t1 (user_id char(64) character set utf8);
insert t1 values(1),(2),(3),(4),(5),(6),(7),(8),(9),(10),(11),(12),(13),(14),(15),(16),(17); insert t1 values(1),(2),(3),(4),(5),(6),(7),(8),(9),(10),(11),(12),(13),(14),(15),(16),(17);
set @@tmp_table_size = 1024; set @@tmp_table_size = 1024;
Warnings:
Warning 1292 Truncated incorrect tmp_table_size value: '1024'
select count(distinct user_id) from t1; select count(distinct user_id) from t1;
count(distinct user_id) count(distinct user_id)
17 17
@ -125,6 +127,8 @@ insert into t1 values
( 2 , 13 ), ( 2 , 13 ),
( 3 , 14 ); ( 3 , 14 );
set @@tmp_table_size=1024; set @@tmp_table_size=1024;
Warnings:
Warning 1292 Truncated incorrect tmp_table_size value: '1024'
select count(distinct a) from t1; select count(distinct a) from t1;
count(distinct a) count(distinct a)
10 10

View File

@ -310,7 +310,7 @@ a char(2) NOT NULL DEFAULT '',
PRIMARY KEY (a) PRIMARY KEY (a)
) ENGINE=MyISAM; ) ENGINE=MyISAM;
INSERT INTO t4 VALUES ('CD'); INSERT INTO t4 VALUES ('CD');
set @@tmp_table_size=8192; set @@tmp_table_size=16384;
EXPLAIN EXPLAIN
SELECT * FROM t3 AS tx JOIN t2 AS ty ON (tx.pk = ty.pk) SELECT * FROM t3 AS tx JOIN t2 AS ty ON (tx.pk = ty.pk)
WHERE WHERE

View File

@ -245,7 +245,7 @@ CREATE TABLE t4 (
) ENGINE=MyISAM; ) ENGINE=MyISAM;
INSERT INTO t4 VALUES ('CD'); INSERT INTO t4 VALUES ('CD');
set @@tmp_table_size=8192; set @@tmp_table_size=16384;
--replace_column 9 # --replace_column 9 #
EXPLAIN EXPLAIN

View File

@ -2259,6 +2259,8 @@ INSERT INTO t3 VALUES ('Miami');
SET @save_optimizer_switch=@@optimizer_switch; SET @save_optimizer_switch=@@optimizer_switch;
SET optimizer_switch = 'derived_with_keys=on'; SET optimizer_switch = 'derived_with_keys=on';
SET @@tmp_table_size=1024*4; SET @@tmp_table_size=1024*4;
Warnings:
Warning 1292 Truncated incorrect tmp_table_size value: '4096'
explain SELECT * FROM (SELECT t1.* FROM t1, t2) AS t JOIN t3 ON t3.a = t.b; explain SELECT * FROM (SELECT t1.* FROM t1, t2) AS t JOIN t3 ON t3.a = t.b;
id select_type table type possible_keys key key_len ref rows Extra id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t3 system NULL NULL NULL NULL 1 1 SIMPLE t3 system NULL NULL NULL NULL 1

View File

@ -1005,6 +1005,8 @@ DROP TABLE t1;
# #
SET @tmp_table_size_save= @@tmp_table_size; SET @tmp_table_size_save= @@tmp_table_size;
SET @@tmp_table_size= 1024; SET @@tmp_table_size= 1024;
Warnings:
Warning 1292 Truncated incorrect tmp_table_size value: '1024'
CREATE TABLE t1 (a INT); CREATE TABLE t1 (a INT);
INSERT INTO t1 VALUES (1),(2),(3),(4),(5),(6),(7),(8); INSERT INTO t1 VALUES (1),(2),(3),(4),(5),(6),(7),(8);
INSERT INTO t1 SELECT a+8 FROM t1; INSERT INTO t1 SELECT a+8 FROM t1;

View File

@ -1,15 +1,12 @@
CREATE TABLE t1 ( CREATE TABLE t1 (
a varchar(32) character set utf8 collate utf8_bin NOT NULL, a varchar(128) character set utf8 collate utf8_bin NOT NULL,
b varchar(32) character set utf8 collate utf8_bin NOT NULL ) b varchar(128) character set utf8 collate utf8_bin NOT NULL )
ENGINE=MyISAM DEFAULT CHARSET=utf8; ENGINE=MyISAM DEFAULT CHARSET=utf8;
INSERT INTO t1 VALUES INSERT INTO t1
('AAAAAAAAAA','AAAAAAAAAA'), ('AAAAAAAAAB','AAAAAAAAAB '), select concat(repeat("A", 50),char(32+mod(seq,31)),char(32+mod(seq,29))),
('AAAAAAAAAB','AAAAAAAAAB'), ('AAAAAAAAAC','AAAAAAAAAC'), concat(repeat("A", 50),char(32+mod(seq,31)),char(32+mod(seq,29)))
('AAAAAAAAAD','AAAAAAAAAD'), ('AAAAAAAAAE','AAAAAAAAAE'), from seq_1_to_128;
('AAAAAAAAAF','AAAAAAAAAF'), ('AAAAAAAAAG','AAAAAAAAAG'), set tmp_table_size=16384;
('AAAAAAAAAH','AAAAAAAAAH'), ('AAAAAAAAAI','AAAAAAAAAI'),
('AAAAAAAAAJ','AAAAAAAAAJ'), ('AAAAAAAAAK','AAAAAAAAAK');
set tmp_table_size=1024;
SET @saved_dbug = @@SESSION.debug_dbug; SET @saved_dbug = @@SESSION.debug_dbug;
set session debug_dbug="+d,raise_error"; set session debug_dbug="+d,raise_error";
SELECT MAX(a) FROM t1 GROUP BY a,b; SELECT MAX(a) FROM t1 GROUP BY a,b;

View File

@ -1,23 +1,20 @@
--source include/have_debug.inc --source include/have_debug.inc
--source include/not_embedded.inc --source include/not_embedded.inc
--source include/have_sequence.inc
# #
# Bug #28499: crash for grouping query when tmp_table_size is too small # Bug #28499: crash for grouping query when tmp_table_size is too small
# #
CREATE TABLE t1 ( CREATE TABLE t1 (
a varchar(32) character set utf8 collate utf8_bin NOT NULL, a varchar(128) character set utf8 collate utf8_bin NOT NULL,
b varchar(32) character set utf8 collate utf8_bin NOT NULL ) b varchar(128) character set utf8 collate utf8_bin NOT NULL )
ENGINE=MyISAM DEFAULT CHARSET=utf8; ENGINE=MyISAM DEFAULT CHARSET=utf8;
INSERT INTO t1 VALUES INSERT INTO t1
('AAAAAAAAAA','AAAAAAAAAA'), ('AAAAAAAAAB','AAAAAAAAAB '), select concat(repeat("A", 50),char(32+mod(seq,31)),char(32+mod(seq,29))),
('AAAAAAAAAB','AAAAAAAAAB'), ('AAAAAAAAAC','AAAAAAAAAC'), concat(repeat("A", 50),char(32+mod(seq,31)),char(32+mod(seq,29)))
('AAAAAAAAAD','AAAAAAAAAD'), ('AAAAAAAAAE','AAAAAAAAAE'), from seq_1_to_128;
('AAAAAAAAAF','AAAAAAAAAF'), ('AAAAAAAAAG','AAAAAAAAAG'),
('AAAAAAAAAH','AAAAAAAAAH'), ('AAAAAAAAAI','AAAAAAAAAI'),
('AAAAAAAAAJ','AAAAAAAAAJ'), ('AAAAAAAAAK','AAAAAAAAAK');
set tmp_table_size=1024; set tmp_table_size=16384;
# Set debug flag so an error is returned when # Set debug flag so an error is returned when
# tmp table in query is converted from heap to myisam # tmp table in query is converted from heap to myisam

View File

@ -1,4 +1,3 @@
drop table if exists t1;
select floor(5.5),floor(-5.5); select floor(5.5),floor(-5.5);
floor(5.5) floor(-5.5) floor(5.5) floor(-5.5)
5 -6 5 -6
@ -3726,5 +3725,17 @@ SELECT(ASIN(-1)+ LN(-1)) % (ATAN(-1) MOD FLOOR(1)) * (TRUNCATE(EXP(-1.e-2),-1.e+
c1 c1
NULL NULL
# #
# End of 10.5 tests # MDEV-35651 NO_UNSIGNED_SUBTRACTION does not work for multiple unsigned integers
# #
set sql_mode=no_unsigned_subtraction;
select cast(0 as unsigned) - 1;
cast(0 as unsigned) - 1
-1
select 2-cast(3 as unsigned);
2-cast(3 as unsigned)
-1
select cast(1 as unsigned) - cast(2 as unsigned);
cast(1 as unsigned) - cast(2 as unsigned)
-1
set sql_mode=default;
# End of 10.5 tests

View File

@ -4,10 +4,6 @@
--source include/default_charset.inc --source include/default_charset.inc
--disable_warnings
drop table if exists t1;
--enable_warnings
select floor(5.5),floor(-5.5); select floor(5.5),floor(-5.5);
explain extended select floor(5.5),floor(-5.5); explain extended select floor(5.5),floor(-5.5);
select ceiling(5.5),ceiling(-5.5); select ceiling(5.5),ceiling(-5.5);
@ -1992,7 +1988,13 @@ SELECT (TRUNCATE(EXP(-1.e-2),-1.e+30) % RADIANS(-1)) AS c1;
SELECT (TRUNCATE(EXP(-1.e-2),-1.e+30) % RADIANS(-1)) * (LAST_DAY('1-03-30 1:29:12') MOD 1 + COS(-1)) AS c1; SELECT (TRUNCATE(EXP(-1.e-2),-1.e+30) % RADIANS(-1)) * (LAST_DAY('1-03-30 1:29:12') MOD 1 + COS(-1)) AS c1;
SELECT(ASIN(-1)+ LN(-1)) % (ATAN(-1) MOD FLOOR(1)) * (TRUNCATE(EXP(-1.e-2),-1.e+30) % RADIANS(-1)) * (LAST_DAY('1-03-30 1:29:12') MOD 1 + COS(-1)) AS c1; SELECT(ASIN(-1)+ LN(-1)) % (ATAN(-1) MOD FLOOR(1)) * (TRUNCATE(EXP(-1.e-2),-1.e+30) % RADIANS(-1)) * (LAST_DAY('1-03-30 1:29:12') MOD 1 + COS(-1)) AS c1;
--echo #
--echo # MDEV-35651 NO_UNSIGNED_SUBTRACTION does not work for multiple unsigned integers
--echo #
set sql_mode=no_unsigned_subtraction;
select cast(0 as unsigned) - 1;
select 2-cast(3 as unsigned);
select cast(1 as unsigned) - cast(2 as unsigned);
set sql_mode=default;
--echo #
--echo # End of 10.5 tests --echo # End of 10.5 tests
--echo #

View File

@ -2372,7 +2372,7 @@ drop database dummy;
USE test; USE test;
CREATE VIEW v AS SELECT table_schema AS object_schema, table_name AS object_name, table_type AS object_type FROM information_schema.tables ORDER BY object_schema; CREATE VIEW v AS SELECT table_schema AS object_schema, table_name AS object_name, table_type AS object_type FROM information_schema.tables ORDER BY object_schema;
SELECT * FROM v LIMIT ROWS EXAMINED 9; SELECT * FROM v LIMIT ROWS EXAMINED 9;
ERROR HY000: Sort aborted: ERROR HY000: Sort aborted: LIMIT ROWS EXAMINED
DROP VIEW v; DROP VIEW v;
# #
# MDEV-23408 Wrong result upon query from I_S and further Assertion `!alias_arg || strlen(alias_arg->str) == alias_arg->length' failed with certain connection charset # MDEV-23408 Wrong result upon query from I_S and further Assertion `!alias_arg || strlen(alias_arg->str) == alias_arg->length' failed with certain connection charset

View File

@ -608,7 +608,7 @@ select c1, c2 from t3 order by c2, c1 LIMIT ROWS EXAMINED 2;
id select_type table type possible_keys key key_len ref rows Extra id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t3 ALL NULL NULL NULL NULL 5 Using filesort 1 SIMPLE t3 ALL NULL NULL NULL NULL 5 Using filesort
select c1, c2 from t3 order by c2, c1 LIMIT ROWS EXAMINED 2; select c1, c2 from t3 order by c2, c1 LIMIT ROWS EXAMINED 2;
ERROR HY000: Sort aborted: ERROR HY000: Sort aborted: LIMIT ROWS EXAMINED
explain explain
select c1, c2 from t3i order by c2, c1 LIMIT ROWS EXAMINED 2; select c1, c2 from t3i order by c2, c1 LIMIT ROWS EXAMINED 2;
id select_type table type possible_keys key key_len ref rows Extra id select_type table type possible_keys key key_len ref rows Extra
@ -624,7 +624,7 @@ select c1, c2 from t3i order by c2, c1 desc LIMIT ROWS EXAMINED 2;
id select_type table type possible_keys key key_len ref rows Extra id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t3i index NULL it3j 8 NULL 5 Using index; Using filesort 1 SIMPLE t3i index NULL it3j 8 NULL 5 Using index; Using filesort
select c1, c2 from t3i order by c2, c1 desc LIMIT ROWS EXAMINED 2; select c1, c2 from t3i order by c2, c1 desc LIMIT ROWS EXAMINED 2;
ERROR HY000: Sort aborted: ERROR HY000: Sort aborted: LIMIT ROWS EXAMINED
drop table t3,t3i; drop table t3,t3i;
========================================================================= =========================================================================
INSERT/DELETE/UPDATE INSERT/DELETE/UPDATE

View File

@ -90,13 +90,11 @@ table->field[0]->offset = 1
table->field[0]->field_length = 10 table->field[0]->field_length = 10
table->field[0]->null_pos wrt to record 0 = 0 table->field[0]->null_pos wrt to record 0 = 0
table->field[0]->null_bit_pos = 1 table->field[0]->null_bit_pos = 1
table->field[1]->field_name DB_ROW_HASH_1 table->field[1]->field_name DB_ROW_HASH_1
table->field[1]->offset = 11 table->field[1]->offset = 11
table->field[1]->field_length = 8 table->field[1]->field_length = 8
table->field[1]->null_pos wrt to record 0 = 0 table->field[1]->null_pos wrt to record 0 = 0
table->field[1]->null_bit_pos = 2 table->field[1]->null_bit_pos = 2
SET debug_dbug=""; SET debug_dbug="";
drop table t1; drop table t1;
SET debug_dbug="d,print_long_unique_internal_state"; SET debug_dbug="d,print_long_unique_internal_state";
@ -182,37 +180,31 @@ table->field[0]->offset = 1
table->field[0]->field_length = 10 table->field[0]->field_length = 10
table->field[0]->null_pos wrt to record 0 = 0 table->field[0]->null_pos wrt to record 0 = 0
table->field[0]->null_bit_pos = 1 table->field[0]->null_bit_pos = 1
table->field[1]->field_name b table->field[1]->field_name b
table->field[1]->offset = 11 table->field[1]->offset = 11
table->field[1]->field_length = 10 table->field[1]->field_length = 10
table->field[1]->null_pos wrt to record 0 = 0 table->field[1]->null_pos wrt to record 0 = 0
table->field[1]->null_bit_pos = 2 table->field[1]->null_bit_pos = 2
table->field[2]->field_name c table->field[2]->field_name c
table->field[2]->offset = 21 table->field[2]->offset = 21
table->field[2]->field_length = 10 table->field[2]->field_length = 10
table->field[2]->null_pos wrt to record 0 = 0 table->field[2]->null_pos wrt to record 0 = 0
table->field[2]->null_bit_pos = 4 table->field[2]->null_bit_pos = 4
table->field[3]->field_name DB_ROW_HASH_1 table->field[3]->field_name DB_ROW_HASH_1
table->field[3]->offset = 31 table->field[3]->offset = 31
table->field[3]->field_length = 8 table->field[3]->field_length = 8
table->field[3]->null_pos wrt to record 0 = 0 table->field[3]->null_pos wrt to record 0 = 0
table->field[3]->null_bit_pos = 8 table->field[3]->null_bit_pos = 8
table->field[4]->field_name DB_ROW_HASH_2 table->field[4]->field_name DB_ROW_HASH_2
table->field[4]->offset = 39 table->field[4]->offset = 39
table->field[4]->field_length = 8 table->field[4]->field_length = 8
table->field[4]->null_pos wrt to record 0 = 0 table->field[4]->null_pos wrt to record 0 = 0
table->field[4]->null_bit_pos = 16 table->field[4]->null_bit_pos = 16
table->field[5]->field_name DB_ROW_HASH_3 table->field[5]->field_name DB_ROW_HASH_3
table->field[5]->offset = 47 table->field[5]->offset = 47
table->field[5]->field_length = 8 table->field[5]->field_length = 8
table->field[5]->null_pos wrt to record 0 = 0 table->field[5]->null_pos wrt to record 0 = 0
table->field[5]->null_bit_pos = 32 table->field[5]->null_bit_pos = 32
SET debug_dbug=""; SET debug_dbug="";
drop table t1; drop table t1;
SET debug_dbug="d,print_long_unique_internal_state"; SET debug_dbug="d,print_long_unique_internal_state";
@ -290,37 +282,31 @@ table->field[0]->offset = 1
table->field[0]->field_length = 10 table->field[0]->field_length = 10
table->field[0]->null_pos wrt to record 0 = 0 table->field[0]->null_pos wrt to record 0 = 0
table->field[0]->null_bit_pos = 1 table->field[0]->null_bit_pos = 1
table->field[1]->field_name b table->field[1]->field_name b
table->field[1]->offset = 11 table->field[1]->offset = 11
table->field[1]->field_length = 10 table->field[1]->field_length = 10
table->field[1]->null_pos wrt to record 0 = 0 table->field[1]->null_pos wrt to record 0 = 0
table->field[1]->null_bit_pos = 2 table->field[1]->null_bit_pos = 2
table->field[2]->field_name c table->field[2]->field_name c
table->field[2]->offset = 21 table->field[2]->offset = 21
table->field[2]->field_length = 10 table->field[2]->field_length = 10
table->field[2]->null_pos wrt to record 0 = 0 table->field[2]->null_pos wrt to record 0 = 0
table->field[2]->null_bit_pos = 4 table->field[2]->null_bit_pos = 4
table->field[3]->field_name d table->field[3]->field_name d
table->field[3]->offset = 31 table->field[3]->offset = 31
table->field[3]->field_length = 10 table->field[3]->field_length = 10
table->field[3]->null_pos wrt to record 0 = 0 table->field[3]->null_pos wrt to record 0 = 0
table->field[3]->null_bit_pos = 8 table->field[3]->null_bit_pos = 8
table->field[4]->field_name DB_ROW_HASH_1 table->field[4]->field_name DB_ROW_HASH_1
table->field[4]->offset = 41 table->field[4]->offset = 41
table->field[4]->field_length = 8 table->field[4]->field_length = 8
table->field[4]->null_pos wrt to record 0 = 0 table->field[4]->null_pos wrt to record 0 = 0
table->field[4]->null_bit_pos = 16 table->field[4]->null_bit_pos = 16
table->field[5]->field_name DB_ROW_HASH_2 table->field[5]->field_name DB_ROW_HASH_2
table->field[5]->offset = 49 table->field[5]->offset = 49
table->field[5]->field_length = 8 table->field[5]->field_length = 8
table->field[5]->null_pos wrt to record 0 = 0 table->field[5]->null_pos wrt to record 0 = 0
table->field[5]->null_bit_pos = 32 table->field[5]->null_bit_pos = 32
SET debug_dbug=""; SET debug_dbug="";
drop table t1; drop table t1;
SET debug_dbug="d,print_long_unique_internal_state"; SET debug_dbug="d,print_long_unique_internal_state";
@ -406,31 +392,26 @@ table->field[0]->offset = 1
table->field[0]->field_length = 4 table->field[0]->field_length = 4
table->field[0]->null_pos wrt to record 0 = -1 table->field[0]->null_pos wrt to record 0 = -1
table->field[0]->null_bit_pos = 0 table->field[0]->null_bit_pos = 0
table->field[1]->field_name b table->field[1]->field_name b
table->field[1]->offset = 5 table->field[1]->offset = 5
table->field[1]->field_length = 10 table->field[1]->field_length = 10
table->field[1]->null_pos wrt to record 0 = 0 table->field[1]->null_pos wrt to record 0 = 0
table->field[1]->null_bit_pos = 1 table->field[1]->null_bit_pos = 1
table->field[2]->field_name c table->field[2]->field_name c
table->field[2]->offset = 15 table->field[2]->offset = 15
table->field[2]->field_length = 10 table->field[2]->field_length = 10
table->field[2]->null_pos wrt to record 0 = -1 table->field[2]->null_pos wrt to record 0 = -1
table->field[2]->null_bit_pos = 0 table->field[2]->null_bit_pos = 0
table->field[3]->field_name DB_ROW_HASH_1 table->field[3]->field_name DB_ROW_HASH_1
table->field[3]->offset = 25 table->field[3]->offset = 25
table->field[3]->field_length = 8 table->field[3]->field_length = 8
table->field[3]->null_pos wrt to record 0 = 0 table->field[3]->null_pos wrt to record 0 = 0
table->field[3]->null_bit_pos = 2 table->field[3]->null_bit_pos = 2
table->field[4]->field_name DB_ROW_HASH_2 table->field[4]->field_name DB_ROW_HASH_2
table->field[4]->offset = 33 table->field[4]->offset = 33
table->field[4]->field_length = 8 table->field[4]->field_length = 8
table->field[4]->null_pos wrt to record 0 = -1 table->field[4]->null_pos wrt to record 0 = -1
table->field[4]->null_bit_pos = 0 table->field[4]->null_bit_pos = 0
SET debug_dbug=""; SET debug_dbug="";
drop table t1; drop table t1;
##Using hash ##Using hash
@ -487,25 +468,21 @@ table->field[0]->offset = 1
table->field[0]->field_length = 4 table->field[0]->field_length = 4
table->field[0]->null_pos wrt to record 0 = 0 table->field[0]->null_pos wrt to record 0 = 0
table->field[0]->null_bit_pos = 2 table->field[0]->null_bit_pos = 2
table->field[1]->field_name b table->field[1]->field_name b
table->field[1]->offset = 5 table->field[1]->offset = 5
table->field[1]->field_length = 4 table->field[1]->field_length = 4
table->field[1]->null_pos wrt to record 0 = 0 table->field[1]->null_pos wrt to record 0 = 0
table->field[1]->null_bit_pos = 4 table->field[1]->null_bit_pos = 4
table->field[2]->field_name c table->field[2]->field_name c
table->field[2]->offset = 9 table->field[2]->offset = 9
table->field[2]->field_length = 4 table->field[2]->field_length = 4
table->field[2]->null_pos wrt to record 0 = 0 table->field[2]->null_pos wrt to record 0 = 0
table->field[2]->null_bit_pos = 8 table->field[2]->null_bit_pos = 8
table->field[3]->field_name DB_ROW_HASH_1 table->field[3]->field_name DB_ROW_HASH_1
table->field[3]->offset = 13 table->field[3]->offset = 13
table->field[3]->field_length = 8 table->field[3]->field_length = 8
table->field[3]->null_pos wrt to record 0 = 0 table->field[3]->null_pos wrt to record 0 = 0
table->field[3]->null_bit_pos = 16 table->field[3]->null_bit_pos = 16
SET debug_dbug=""; SET debug_dbug="";
drop table t1; drop table t1;
##Using hash but with memory engine so no long unique column ##Using hash but with memory engine so no long unique column
@ -562,18 +539,15 @@ table->field[0]->offset = 1
table->field[0]->field_length = 4 table->field[0]->field_length = 4
table->field[0]->null_pos wrt to record 0 = 0 table->field[0]->null_pos wrt to record 0 = 0
table->field[0]->null_bit_pos = 2 table->field[0]->null_bit_pos = 2
table->field[1]->field_name b table->field[1]->field_name b
table->field[1]->offset = 5 table->field[1]->offset = 5
table->field[1]->field_length = 4 table->field[1]->field_length = 4
table->field[1]->null_pos wrt to record 0 = 0 table->field[1]->null_pos wrt to record 0 = 0
table->field[1]->null_bit_pos = 4 table->field[1]->null_bit_pos = 4
table->field[2]->field_name c table->field[2]->field_name c
table->field[2]->offset = 9 table->field[2]->offset = 9
table->field[2]->field_length = 4 table->field[2]->field_length = 4
table->field[2]->null_pos wrt to record 0 = 0 table->field[2]->null_pos wrt to record 0 = 0
table->field[2]->null_bit_pos = 8 table->field[2]->null_bit_pos = 8
SET debug_dbug=""; SET debug_dbug="";
drop table t1; drop table t1;

View File

@ -0,0 +1,8 @@
select * from information_schema.processlist where id=0;
should be true
1
should be true
1
show global status like "max_memory_used";
Variable_name Value
Max_memory_used NULL

View File

@ -0,0 +1,20 @@
#
# Added status variable "Max_memory_used" to SHOW STATUS
#
let $l1=`show status like "max_memory_used"`;
--disable_result_log
select * from information_schema.processlist where id=0;
--enable_result_log
let $l2=`show status like "max_memory_used"`;
--disable_query_log
eval SET @l1= SUBSTRING_INDEX('$l1', ' ', -1);
eval SET @l2= SUBSTRING_INDEX('$l2', ' ', -1);
eval select @l1 > 10000 as "should be true";
eval select @l2+0 > @l1+0 as "should be true";
--enable_query_log
# global max_memory should be NULL as we cannot calculate this
show global status like "max_memory_used";

View File

@ -1,5 +1,5 @@
--- main/myisam_mrr.result 2019-05-14 15:44:52.232663568 +0530 --- main/myisam_mrr.result
+++ main/myisam_mrr.reject 2019-05-14 15:51:37.123563538 +0530 +++ main/myisam_mrr.reject
@@ -617,8 +617,8 @@ @@ -617,8 +617,8 @@
show status like 'handler_mrr%'; show status like 'handler_mrr%';
Variable_name Value Variable_name Value

View File

@ -6,7 +6,7 @@ flush tables;
--let $args=--table-cache=5 --max-connections=10 --log-warnings=1 --silent-startup --lower-case-table-names=1 --help --verbose --let $args=--table-cache=5 --max-connections=10 --log-warnings=1 --silent-startup --lower-case-table-names=1 --help --verbose
--exec $MYSQLD_CMD $args > $MYSQL_TMP_DIR/mysqld--help2.txt 2> $MYSQL_TMP_DIR/mysqld--help2.err --exec $MYSQLD_CMD $args > $MYSQL_TMP_DIR/mysqld--help2.txt 2> $MYSQL_TMP_DIR/mysqld--help2.err
--replace_regex /mysqld/mariadbd/ /\d\d\d\d-\d*-\d* *\d*:\d*:\d* \d* // --replace_regex /mysqld/mariadbd/ /\d\d\d\d-\d*-\d* *\d*:\d*:\d* \d* // /^.*failed to retrieve the MAC address\n//
--cat_file $MYSQL_TMP_DIR/mysqld--help2.err --cat_file $MYSQL_TMP_DIR/mysqld--help2.err
--echo # --echo #
@ -14,7 +14,7 @@ flush tables;
--echo # --echo #
--exec $MYSQLD_CMD $args --datadir=$MYSQL_TMP_DIR/help > $MYSQL_TMP_DIR/mysqld--help2.txt 2> $MYSQL_TMP_DIR/mysqld--help2.err --exec $MYSQLD_CMD $args --datadir=$MYSQL_TMP_DIR/help > $MYSQL_TMP_DIR/mysqld--help2.txt 2> $MYSQL_TMP_DIR/mysqld--help2.err
--replace_regex /\d\d\d\d-\d*-\d* *\d*:\d*:\d* \d* // --replace_regex /mysqld/mariadbd/ /\d\d\d\d-\d*-\d* *\d*:\d*:\d* \d* // /^.*failed to retrieve the MAC address\n//
--cat_file $MYSQL_TMP_DIR/mysqld--help2.err --cat_file $MYSQL_TMP_DIR/mysqld--help2.err
--echo # --echo #
@ -23,7 +23,7 @@ flush tables;
--mkdir $MYSQL_TMP_DIR/help --mkdir $MYSQL_TMP_DIR/help
--exec $MYSQLD_CMD $args --datadir=$MYSQL_TMP_DIR/help > $MYSQL_TMP_DIR/mysqld--help2.txt 2> $MYSQL_TMP_DIR/mysqld--help2.err --exec $MYSQLD_CMD $args --datadir=$MYSQL_TMP_DIR/help > $MYSQL_TMP_DIR/mysqld--help2.txt 2> $MYSQL_TMP_DIR/mysqld--help2.err
--replace_regex /\d\d\d\d-\d*-\d* *\d*:\d*:\d* \d* // --replace_regex /mysqld/mariadbd/ /\d\d\d\d-\d*-\d* *\d*:\d*:\d* \d* // /^.*failed to retrieve the MAC address\n//
--cat_file $MYSQL_TMP_DIR/mysqld--help2.err --cat_file $MYSQL_TMP_DIR/mysqld--help2.err
--list_files $MYSQL_TMP_DIR/help --list_files $MYSQL_TMP_DIR/help

View File

@ -1827,14 +1827,14 @@ profiling-history-size 15
progress-report-time 5 progress-report-time 5
protocol-version 10 protocol-version 10
proxy-protocol-networks proxy-protocol-networks
query-alloc-block-size 16384 query-alloc-block-size 32768
query-cache-limit 1048576 query-cache-limit 1048576
query-cache-min-res-unit 4096 query-cache-min-res-unit 4096
query-cache-size 1048576 query-cache-size 1048576
query-cache-strip-comments FALSE query-cache-strip-comments FALSE
query-cache-type OFF query-cache-type OFF
query-cache-wlock-invalidate FALSE query-cache-wlock-invalidate FALSE
query-prealloc-size 24576 query-prealloc-size 32768
range-alloc-block-size 4096 range-alloc-block-size 4096
read-binlog-speed-limit 0 read-binlog-speed-limit 0
read-buffer-size 131072 read-buffer-size 131072

View File

@ -4380,7 +4380,6 @@ explain delete t0,t1 from t0, t1 where t0.a=t1.a and t1.a<3 {
"rec_per_key_stats_missing": true, "rec_per_key_stats_missing": true,
"used_range_estimates": false, "used_range_estimates": false,
"reason": "not better than ref estimates", "reason": "not better than ref estimates",
"rowid_filter_skipped": "worst/max seeks clipping",
"rows": 2, "rows": 2,
"cost": 3.003514767, "cost": 3.003514767,
"chosen": true "chosen": true

View File

@ -4372,6 +4372,8 @@ CREATE TABLE t1(a VARCHAR(1027), b INT);
INSERT INTO t1 SELECT seq, seq from seq_1_to_34; INSERT INTO t1 SELECT seq, seq from seq_1_to_34;
SET @save_tmp_memory_table_size= @@tmp_memory_table_size; SET @save_tmp_memory_table_size= @@tmp_memory_table_size;
SET tmp_memory_table_size= 1056*2; SET tmp_memory_table_size= 1056*2;
Warnings:
Warning 1292 Truncated incorrect tmp_memory_table_size value: '2112'
SELECT COUNT(DISTINCT a) FROM t1; SELECT COUNT(DISTINCT a) FROM t1;
COUNT(DISTINCT a) COUNT(DISTINCT a)
34 34

View File

@ -1,5 +1,5 @@
--- mysql-test/main/select.result 2023-01-31 09:30:58.151377805 +0100 --- mysql-test/main/select.result
+++ mysql-test/main/select.reject 2023-02-01 13:44:11.026958614 +0100 +++ mysql-test/main/select.reject
@@ -5661,6 +5661,8 @@ @@ -5661,6 +5661,8 @@
Note 1276 Field or reference 'test.t1.a' of SELECT #3 was resolved in SELECT #1 Note 1276 Field or reference 'test.t1.a' of SELECT #3 was resolved in SELECT #1
Note 1276 Field or reference 'test.t1.a' of SELECT #3 was resolved in SELECT #1 Note 1276 Field or reference 'test.t1.a' of SELECT #3 was resolved in SELECT #1

View File

@ -1,5 +1,5 @@
--- mysql-test/main/select_jcl6.result 2023-01-31 09:30:58.151377805 +0100 --- mysql-test/main/select_jcl6.result
+++ mysql-test/main/select_jcl6.reject 2023-02-01 13:44:10.722958771 +0100 +++ mysql-test/main/select_jcl6.reject
@@ -5672,6 +5672,8 @@ @@ -5672,6 +5672,8 @@
Note 1276 Field or reference 'test.t1.a' of SELECT #3 was resolved in SELECT #1 Note 1276 Field or reference 'test.t1.a' of SELECT #3 was resolved in SELECT #1
Note 1276 Field or reference 'test.t1.a' of SELECT #3 was resolved in SELECT #1 Note 1276 Field or reference 'test.t1.a' of SELECT #3 was resolved in SELECT #1

View File

@ -1,5 +1,5 @@
--- mysql-test/main/select_pkeycache.result 2023-01-31 09:30:58.151377805 +0100 --- mysql-test/main/select_pkeycache.result
+++ mysql-test/main/select_pkeycache.reject 2023-02-01 13:43:21.742985365 +0100 +++ mysql-test/main/select_pkeycache.reject
@@ -5661,6 +5661,8 @@ @@ -5661,6 +5661,8 @@
Note 1276 Field or reference 'test.t1.a' of SELECT #3 was resolved in SELECT #1 Note 1276 Field or reference 'test.t1.a' of SELECT #3 was resolved in SELECT #1
Note 1276 Field or reference 'test.t1.a' of SELECT #3 was resolved in SELECT #1 Note 1276 Field or reference 'test.t1.a' of SELECT #3 was resolved in SELECT #1

View File

@ -1137,10 +1137,8 @@ select 1 union all select 2 union all select 3 union select 4;
3 3
4 4
# test with limited resource # test with limited resource
set @@max_heap_table_size= 1024; set @@max_heap_table_size= 16384;
Warnings: set @@tmp_table_size= 16384;
Warning 1292 Truncated incorrect max_heap_table_size value: '1024'
set @@tmp_table_size= 1024;
create table t1 (a int, b int); create table t1 (a int, b int);
insert into t1 values (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(0,0); insert into t1 values (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(0,0);
insert into t1 select * from t1; insert into t1 select * from t1;

View File

@ -457,8 +457,8 @@ select 1 union all select 2 union all select 3 union select 4;
--echo # test with limited resource --echo # test with limited resource
set @@max_heap_table_size= 1024; set @@max_heap_table_size= 16384;
set @@tmp_table_size= 1024; set @@tmp_table_size= 16384;
create table t1 (a int, b int); create table t1 (a int, b int);
insert into t1 values (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(0,0); insert into t1 values (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(0,0);

View File

@ -874,7 +874,7 @@ insert into t1 select * from t2;
insert into t2 select * from t1; insert into t2 select * from t1;
insert into t1 select * from t2; insert into t1 select * from t2;
insert into t2 select * from t1; insert into t2 select * from t1;
set local tmp_table_size=1024; set local tmp_table_size=16384;
select count(*) from (select * from t1 union all select * from t2 order by 1) b; select count(*) from (select * from t1 union all select * from t2 order by 1) b;
count(*) count(*)
21 21

View File

@ -503,7 +503,7 @@ insert into t1 select * from t2;
insert into t2 select * from t1; insert into t2 select * from t1;
insert into t1 select * from t2; insert into t1 select * from t2;
insert into t2 select * from t1; insert into t2 select * from t1;
set local tmp_table_size=1024; set local tmp_table_size=16384;
select count(*) from (select * from t1 union all select * from t2 order by 1) b; select count(*) from (select * from t1 union all select * from t2 order by 1) b;
select count(*) from t1; select count(*) from t1;
select count(*) from t2; select count(*) from t2;

View File

@ -491,7 +491,9 @@ a quux
DROP TABLE t1; DROP TABLE t1;
connect con1,localhost,root,,test; connect con1,localhost,root,,test;
connection con1; connection con1;
set tmp_table_size=1024; set tmp_table_size=2048;
Warnings:
Warning 1292 Truncated incorrect tmp_table_size value: '2048'
create table t1 (id int, a int, key idx(a)); create table t1 (id int, a int, key idx(a));
create table t2 (id int unsigned not null auto_increment primary key, a int); create table t2 (id int unsigned not null auto_increment primary key, a int);
insert into t2(a) values(1),(2),(3),(4),(5),(6),(7),(8); insert into t2(a) values(1),(2),(3),(4),(5),(6),(7),(8);

View File

@ -397,7 +397,7 @@ DROP TABLE t1;
connect (con1,localhost,root,,test); connect (con1,localhost,root,,test);
connection con1; connection con1;
set tmp_table_size=1024; set tmp_table_size=2048;
# Create the test tables # Create the test tables
create table t1 (id int, a int, key idx(a)); create table t1 (id int, a int, key idx(a));

View File

@ -299,8 +299,8 @@ SHOW VARIABLES WHERE variable_name IN ('range_alloc_block_size',
'query_alloc_block_size', 'query_prealloc_size', 'query_alloc_block_size', 'query_prealloc_size',
'transaction_alloc_block_size', 'transaction_prealloc_size'); 'transaction_alloc_block_size', 'transaction_prealloc_size');
Variable_name Value Variable_name Value
query_alloc_block_size 16384 query_alloc_block_size 32768
query_prealloc_size 24576 query_prealloc_size 32768
range_alloc_block_size 4096 range_alloc_block_size 4096
transaction_alloc_block_size 8192 transaction_alloc_block_size 8192
transaction_prealloc_size 4096 transaction_prealloc_size 4096
@ -310,8 +310,8 @@ WHERE variable_name IN ('range_alloc_block_size',
'query_alloc_block_size', 'query_prealloc_size', 'query_alloc_block_size', 'query_prealloc_size',
'transaction_alloc_block_size', 'transaction_prealloc_size') ORDER BY 1; 'transaction_alloc_block_size', 'transaction_prealloc_size') ORDER BY 1;
VARIABLE_NAME VARIABLE_VALUE VARIABLE_NAME VARIABLE_VALUE
QUERY_ALLOC_BLOCK_SIZE 16384 QUERY_ALLOC_BLOCK_SIZE 32768
QUERY_PREALLOC_SIZE 24576 QUERY_PREALLOC_SIZE 32768
RANGE_ALLOC_BLOCK_SIZE 4096 RANGE_ALLOC_BLOCK_SIZE 4096
TRANSACTION_ALLOC_BLOCK_SIZE 8192 TRANSACTION_ALLOC_BLOCK_SIZE 8192
TRANSACTION_PREALLOC_SIZE 4096 TRANSACTION_PREALLOC_SIZE 4096
@ -392,8 +392,8 @@ SHOW VARIABLES WHERE variable_name IN ('range_alloc_block_size',
'query_alloc_block_size', 'query_prealloc_size', 'query_alloc_block_size', 'query_prealloc_size',
'transaction_alloc_block_size', 'transaction_prealloc_size'); 'transaction_alloc_block_size', 'transaction_prealloc_size');
Variable_name Value Variable_name Value
query_alloc_block_size 16384 query_alloc_block_size 32768
query_prealloc_size 24576 query_prealloc_size 32768
range_alloc_block_size 4096 range_alloc_block_size 4096
transaction_alloc_block_size 8192 transaction_alloc_block_size 8192
transaction_prealloc_size 4096 transaction_prealloc_size 4096
@ -547,7 +547,7 @@ set global table_open_cache=100;
set default_storage_engine=myisam; set default_storage_engine=myisam;
set global thread_cache_size=100; set global thread_cache_size=100;
set timestamp=1, timestamp=default; set timestamp=1, timestamp=default;
set tmp_table_size=1024; set tmp_table_size=16384;
set tx_isolation="READ-COMMITTED"; set tx_isolation="READ-COMMITTED";
set wait_timeout=100; set wait_timeout=100;
set log_warnings=1; set log_warnings=1;

View File

@ -340,7 +340,7 @@ set global table_open_cache=100;
set default_storage_engine=myisam; set default_storage_engine=myisam;
set global thread_cache_size=100; set global thread_cache_size=100;
set timestamp=1, timestamp=default; set timestamp=1, timestamp=default;
set tmp_table_size=1024; set tmp_table_size=16384;
set tx_isolation="READ-COMMITTED"; set tx_isolation="READ-COMMITTED";
set wait_timeout=100; set wait_timeout=100;
set log_warnings=1; set log_warnings=1;

View File

@ -4526,7 +4526,7 @@ sub extract_warning_lines ($$) {
qr|InnoDB: liburing disabled|, qr|InnoDB: liburing disabled|,
qr/InnoDB: Failed to set O_DIRECT on file/, qr/InnoDB: Failed to set O_DIRECT on file/,
qr|setrlimit could not change the size of core files to 'infinity';|, qr|setrlimit could not change the size of core files to 'infinity';|,
qr|feedback plugin: failed to retrieve the MAC address|, qr|failed to retrieve the MAC address|,
qr|Plugin 'FEEDBACK' init function returned error|, qr|Plugin 'FEEDBACK' init function returned error|,
qr|Plugin 'FEEDBACK' registration as a INFORMATION SCHEMA failed|, qr|Plugin 'FEEDBACK' registration as a INFORMATION SCHEMA failed|,
qr|'log-bin-use-v1-row-events' is MySQL .* compatible option|, qr|'log-bin-use-v1-row-events' is MySQL .* compatible option|,

Binary file not shown.

View File

@ -4,4 +4,3 @@ call mtr.add_suppression("Can't generate a unique log-filename");
RESET MASTER; RESET MASTER;
FLUSH LOGS; FLUSH LOGS;
ERROR HY000: Can't generate a unique log-filename master-bin.(1-999) ERROR HY000: Can't generate a unique log-filename master-bin.(1-999)

View File

@ -16,7 +16,6 @@ master-bin.2147483647 # Gtid # # GTID #-#-#
master-bin.2147483647 # Query # # CREATE DATABASE db1 master-bin.2147483647 # Query # # CREATE DATABASE db1
RESET MASTER TO 2147483648; RESET MASTER TO 2147483648;
ERROR HY000: Can't generate a unique log-filename master-bin.(1-999) ERROR HY000: Can't generate a unique log-filename master-bin.(1-999)
FOUND 1 /Turning logging off for the whole duration of the MariaDB server process/ in mysqld.1.err FOUND 1 /Turning logging off for the whole duration of the MariaDB server process/ in mysqld.1.err
"Following CREATE DATABSE db2 command will not be present in binary log" "Following CREATE DATABSE db2 command will not be present in binary log"
"as binary log got closed due to ER_NO_UNIQUE_LOGFILE error." "as binary log got closed due to ER_NO_UNIQUE_LOGFILE error."

View File

@ -11,5 +11,4 @@ UPDATE t1 SET c1=repeat('b',255);
INSERT INTO t1 VALUES (repeat('a', 255), repeat('a', 255),repeat('a', 255),repeat('a', 255),repeat('a', 255)); INSERT INTO t1 VALUES (repeat('a', 255), repeat('a', 255),repeat('a', 255),repeat('a', 255),repeat('a', 255));
SHOW BINLOG EVENTS FROM POS; SHOW BINLOG EVENTS FROM POS;
ERROR HY000: Error when executing command SHOW BINLOG EVENTS: Invalid pos specified. Requested from pos:POS is greater than actual file size:MAX_POS ERROR HY000: Error when executing command SHOW BINLOG EVENTS: Invalid pos specified. Requested from pos:POS is greater than actual file size:MAX_POS
DROP TABLE t1; DROP TABLE t1;

View File

@ -26,7 +26,6 @@ RESET MASTER;
SET @@global.debug_dbug="d,error_unique_log_filename"; SET @@global.debug_dbug="d,error_unique_log_filename";
FLUSH LOGS; FLUSH LOGS;
ERROR HY000: Can't generate a unique log-filename master-bin.(1-999) ERROR HY000: Can't generate a unique log-filename master-bin.(1-999)
# assert: must show one binlog # assert: must show one binlog
show binary logs; show binary logs;
Log_name File_size Log_name File_size
@ -52,7 +51,6 @@ RESET MASTER;
SET @@global.debug_dbug="d,error_unique_log_filename"; SET @@global.debug_dbug="d,error_unique_log_filename";
LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/bug_46166.data' INTO TABLE t2; LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/bug_46166.data' INTO TABLE t2;
ERROR HY000: Can't generate a unique log-filename master-bin.(1-999) ERROR HY000: Can't generate a unique log-filename master-bin.(1-999)
# assert: must show one entry # assert: must show one entry
SELECT count(*) FROM t2; SELECT count(*) FROM t2;
count(*) count(*)
@ -78,7 +76,6 @@ LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/bug_46166.data' INTO TABLE t2;
INSERT INTO t2 VALUES ('muse'); INSERT INTO t2 VALUES ('muse');
COMMIT; COMMIT;
ERROR HY000: Can't generate a unique log-filename master-bin.(1-999) ERROR HY000: Can't generate a unique log-filename master-bin.(1-999)
# assert: must show three entries # assert: must show three entries
SELECT count(*) FROM t2; SELECT count(*) FROM t2;
count(*) count(*)
@ -95,7 +92,6 @@ count(*)
0 0
LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/bug_46166.data' INTO TABLE t4; LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/bug_46166.data' INTO TABLE t4;
ERROR HY000: Can't generate a unique log-filename master-bin.(1-999) ERROR HY000: Can't generate a unique log-filename master-bin.(1-999)
# assert: must show 1 entry # assert: must show 1 entry
SELECT count(*) FROM t4; SELECT count(*) FROM t4;
count(*) count(*)
@ -118,13 +114,10 @@ count(*)
0 0
LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/bug_46166.data' INTO TABLE t4; LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/bug_46166.data' INTO TABLE t4;
ERROR HY000: Can't generate a unique log-filename master-bin.(1-999) ERROR HY000: Can't generate a unique log-filename master-bin.(1-999)
LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/bug_46166.data' INTO TABLE t2; LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/bug_46166.data' INTO TABLE t2;
ERROR HY000: Can't generate a unique log-filename master-bin.(1-999) ERROR HY000: Can't generate a unique log-filename master-bin.(1-999)
INSERT INTO t2 VALUES ('aaa'), ('bbb'), ('ccc'); INSERT INTO t2 VALUES ('aaa'), ('bbb'), ('ccc');
ERROR HY000: Can't generate a unique log-filename master-bin.(1-999) ERROR HY000: Can't generate a unique log-filename master-bin.(1-999)
# INFO: Count(*) Before Offending DELETEs # INFO: Count(*) Before Offending DELETEs
# assert: must show 1 entry # assert: must show 1 entry
SELECT count(*) FROM t4; SELECT count(*) FROM t4;
@ -136,10 +129,8 @@ count(*)
4 4
DELETE FROM t4; DELETE FROM t4;
ERROR HY000: Can't generate a unique log-filename master-bin.(1-999) ERROR HY000: Can't generate a unique log-filename master-bin.(1-999)
DELETE FROM t2; DELETE FROM t2;
ERROR HY000: Can't generate a unique log-filename master-bin.(1-999) ERROR HY000: Can't generate a unique log-filename master-bin.(1-999)
# INFO: Count(*) After Offending DELETEs # INFO: Count(*) After Offending DELETEs
# assert: must show zero entries # assert: must show zero entries
SELECT count(*) FROM t4; SELECT count(*) FROM t4;

View File

@ -178,7 +178,6 @@ SET @old_dbug= @@GLOBAL.debug_dbug;
SET debug_dbug= '+d,binlog_inject_new_name_error'; SET debug_dbug= '+d,binlog_inject_new_name_error';
FLUSH LOGS; FLUSH LOGS;
ERROR HY000: Can't generate a unique log-filename master-bin.(1-999) ERROR HY000: Can't generate a unique log-filename master-bin.(1-999)
SET debug_dbug= @old_dbug; SET debug_dbug= @old_dbug;
INSERT INTO t4 VALUES (2); INSERT INTO t4 VALUES (2);
connection slave; connection slave;

View File

@ -1,3 +1,4 @@
call mtr.add_suppression("InnoDB: Encrypted page \\[page id: space=[1-9][0-9]*, page number=[0-9]*\\] in file");
create table t1(a serial) engine=innoDB; create table t1(a serial) engine=innoDB;
set global innodb_encrypt_tables=ON; set global innodb_encrypt_tables=ON;
show variables like 'innodb_encrypt%'; show variables like 'innodb_encrypt%';

View File

@ -0,0 +1,81 @@
call mtr.add_suppression("InnoDB: Encrypted page \\[page id: space=[1-9][0-9]*, page number=3\\] in file .*test.t[12]\\.ibd looks corrupted");
call mtr.add_suppression("InnoDB: Unable to apply log to corrupted page ");
call mtr.add_suppression("InnoDB: Plugin initialization aborted");
call mtr.add_suppression("Plugin 'InnoDB' init function returned error");
call mtr.add_suppression("Plugin 'InnoDB' registration as a STORAGE ENGINE failed");
create table t1 (f1 int primary key, f2 blob)page_compressed = 1 engine=innodb stats_persistent=0;
create table t2(f1 int primary key, f2 blob)engine=innodb stats_persistent=0;
start transaction;
insert into t1 values(1, repeat('#',12));
insert into t1 values(2, repeat('+',12));
insert into t1 values(3, repeat('/',12));
insert into t1 values(4, repeat('-',12));
insert into t1 values(5, repeat('.',12));
insert into t2 select * from t1;
commit work;
SET GLOBAL innodb_fast_shutdown = 0;
# restart: --debug_dbug=+d,ib_log_checkpoint_avoid_hard --innodb_flush_sync=0
select space into @t1_space_id from information_schema.innodb_sys_tablespaces where name='test/t1';
select space into @t2_space_id from information_schema.innodb_sys_tablespaces where name='test/t2';
begin;
insert into t1 values (6, repeat('%', 400));
insert into t2 values (6, repeat('%', 400));
# xtrabackup prepare
set global innodb_saved_page_number_debug = 3;
set global innodb_fil_make_page_dirty_debug = @t1_space_id;
set global innodb_saved_page_number_debug = 3;
set global innodb_fil_make_page_dirty_debug = @t2_space_id;
set global innodb_buf_flush_list_now = 1;
# Kill the server
# restart
FOUND 2 /InnoDB: Recovered page \[page id: space=[1-9]*, page number=3\]/ in mysqld.1.err
check table t1;
Table Op Msg_type Msg_text
test.t1 check status OK
check table t2;
Table Op Msg_type Msg_text
test.t2 check status OK
select f1, f2 from t1;
f1 f2
1 ############
2 ++++++++++++
3 ////////////
4 ------------
5 ............
select f1, f2 from t2;
f1 f2
1 ############
2 ++++++++++++
3 ////////////
4 ------------
5 ............
SET GLOBAL innodb_fast_shutdown = 0;
# shutdown server
# remove datadir
# xtrabackup move back
# restart: --debug_dbug=+d,ib_log_checkpoint_avoid_hard --innodb_flush_sync=0
select space into @t1_space_id from information_schema.innodb_sys_tablespaces where name='test/t1';
begin;
insert into t1 values (6, repeat('%', 400));
set global innodb_saved_page_number_debug = 3;
set global innodb_fil_make_page_dirty_debug = @t1_space_id;
set global innodb_buf_flush_list_now = 1;
# Kill the server
# Corrupt the page 3 in t1.ibd file
# Assign the maximum value to lsn in doublewrite buffer page
# restart
FOUND 1 /InnoDB: Encrypted page \[page id: space=[1-9]*, page number=3\] in file .*test.t1.ibd looks corrupted/ in mysqld.1.err
select * from t1;
ERROR 42000: Unknown storage engine 'InnoDB'
# shutdown server
# remove datadir
# xtrabackup move back
# restart
select * from t1;
f1 f2
1 ############
2 ++++++++++++
3 ////////////
4 ------------
5 ............
drop table t2, t1;

View File

@ -1,5 +1,5 @@
--- encrypt_and_grep.result 2022-09-02 22:36:21.669650278 +0530 --- encrypt_and_grep.result
+++ encrypt_and_grep.reject 2022-11-29 19:01:22.080027528 +0530 +++ encrypt_and_grep.reject
@@ -14,6 +14,9 @@ @@ -14,6 +14,9 @@
SELECT NAME FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION <> 0; SELECT NAME FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION <> 0;
NAME NAME

View File

@ -1,5 +1,5 @@
--- innodb-remove-encryption.result 2022-09-02 20:44:59.960430396 +0530 --- innodb-remove-encryption.result
+++ innodb-remove-encryption,undo3.reject 2022-11-29 19:02:24.813094277 +0530 +++ innodb-remove-encryption,undo3.reject
@@ -13,6 +13,9 @@ @@ -13,6 +13,9 @@
SELECT NAME FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION <> 0; SELECT NAME FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION <> 0;
NAME NAME

View File

@ -1,5 +1,5 @@
--- innodb_encrypt_freed.result 2021-03-23 15:44:14.466377983 +0530 --- innodb_encrypt_freed.result
+++ innodb_encrypt_freed,undo3.reject 2022-11-29 19:04:24.987010571 +0530 +++ innodb_encrypt_freed,undo3.reject
@@ -14,6 +14,9 @@ @@ -14,6 +14,9 @@
SELECT NAME FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION <> 0; SELECT NAME FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION <> 0;
NAME NAME

View File

@ -1,5 +1,5 @@
--- innodb_encrypt_key_rotation_age.result 2022-06-02 16:15:08.395122720 +0530 --- innodb_encrypt_key_rotation_age.result
+++ innodb_encrypt_key_rotation_age,undo3.reject 2022-11-29 19:06:07.964542115 +0530 +++ innodb_encrypt_key_rotation_age,undo3.reject
@@ -12,6 +12,9 @@ @@ -12,6 +12,9 @@
SELECT NAME FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION <> 0; SELECT NAME FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION <> 0;
NAME NAME

View File

@ -3,6 +3,7 @@
-- source include/innodb_undo_tablespaces.inc -- source include/innodb_undo_tablespaces.inc
-- source include/not_embedded.inc -- source include/not_embedded.inc
call mtr.add_suppression("InnoDB: Encrypted page \\[page id: space=[1-9][0-9]*, page number=[0-9]*\\] in file");
if (`select count(*) = 0 from information_schema.plugins if (`select count(*) = 0 from information_schema.plugins
where plugin_name = 'debug_key_management' and plugin_status='active'`) where plugin_name = 'debug_key_management' and plugin_status='active'`)
{ {

View File

@ -0,0 +1,3 @@
--innodb-use-atomic-writes=0
--innodb-encrypt-tables=FORCE
--innodb_sys_tablespaces

View File

@ -0,0 +1,223 @@
--source include/have_innodb.inc
--source include/have_debug.inc
--source include/not_embedded.inc
--source include/have_example_key_management_plugin.inc
call mtr.add_suppression("InnoDB: Encrypted page \\[page id: space=[1-9][0-9]*, page number=3\\] in file .*test.t[12]\\.ibd looks corrupted");
call mtr.add_suppression("InnoDB: Unable to apply log to corrupted page ");
call mtr.add_suppression("InnoDB: Plugin initialization aborted");
call mtr.add_suppression("Plugin 'InnoDB' init function returned error");
call mtr.add_suppression("Plugin 'InnoDB' registration as a STORAGE ENGINE failed");
let INNODB_PAGE_SIZE=`select @@innodb_page_size`;
let MYSQLD_DATADIR=`select @@datadir`;
let ALGO=`select @@innodb_checksum_algorithm`;
create table t1 (f1 int primary key, f2 blob)page_compressed = 1 engine=innodb stats_persistent=0;
create table t2(f1 int primary key, f2 blob)engine=innodb stats_persistent=0;
start transaction;
insert into t1 values(1, repeat('#',12));
insert into t1 values(2, repeat('+',12));
insert into t1 values(3, repeat('/',12));
insert into t1 values(4, repeat('-',12));
insert into t1 values(5, repeat('.',12));
insert into t2 select * from t1;
commit work;
# Slow shutdown and restart to make sure ibuf merge is finished
SET GLOBAL innodb_fast_shutdown = 0;
let $shutdown_timeout=;
let $restart_parameters=--debug_dbug=+d,ib_log_checkpoint_avoid_hard --innodb_flush_sync=0;
--source include/restart_mysqld.inc
--source ../../suite/innodb/include/no_checkpoint_start.inc
select space into @t1_space_id from information_schema.innodb_sys_tablespaces where name='test/t1';
select space into @t2_space_id from information_schema.innodb_sys_tablespaces where name='test/t2';
begin;
insert into t1 values (6, repeat('%', 400));
insert into t2 values (6, repeat('%', 400));
# Copy the t1.ibd, t2.ibd file
let $targetdir=$MYSQLTEST_VARDIR/tmp/backup_1;
--disable_result_log
exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --backup --target-dir=$targetdir;
--enable_result_log
echo # xtrabackup prepare;
--disable_result_log
exec $XTRABACKUP --prepare --target-dir=$targetdir;
set global innodb_saved_page_number_debug = 3;
set global innodb_fil_make_page_dirty_debug = @t1_space_id;
set global innodb_saved_page_number_debug = 3;
set global innodb_fil_make_page_dirty_debug = @t2_space_id;
set global innodb_buf_flush_list_now = 1;
--let CLEANUP_IF_CHECKPOINT=drop table t1, t2, unexpected_checkpoint;
--source ../../suite/innodb/include/no_checkpoint_end.inc
# Corrupt the page 3 in t1.ibd, t2.ibd file
perl;
use IO::Handle;
do "$ENV{MTR_SUITE_DIR}/include/crc32.pl";
my $polynomial = 0x82f63b78; # CRC-32C
my $algo = $ENV{ALGO};
die "Unsupported innodb_checksum_algorithm=$algo\n" unless $algo =~ /crc32/;
my $fname= "$ENV{'MYSQLD_DATADIR'}test/t1.ibd";
my $page_size = $ENV{INNODB_PAGE_SIZE};
my $page;
do "$ENV{MTR_SUITE_DIR}/../innodb/include/crc32.pl";
open(FILE, "+<", $fname) or die;
sysseek(FILE, 3*$page_size, 0);
sysread(FILE, $page, $page_size)==$page_size||die "Unable to read $name\n";
sysseek(FILE, 3*$page_size, 0)||die "Unable to seek $fname\n";
my $corrupted = $page;
# Set FIL_PAGE_LSN to the maximum
substr($corrupted, 16, 8) = chr(255) x 8;
substr($corrupted, $page_size - 8, 8) = chr(255) x 8;
if ($algo =~ /full_crc32/)
{
my $ck = mycrc32(substr($corrupted, 0, $page_size - 4), 0, $polynomial);
substr($corrupted, $page_size - 4, 4) = pack("N", $ck);
}
else
{
# Replace the innodb_checksum_algorithm=crc32 checksum
my $ck= pack("N",
mycrc32(substr($corrupted, 4, 22), 0, $polynomial) ^
mycrc32(substr($corrupted_, 38, $page_size - 38 - 8), 0,
$polynomial));
substr ($corrupted, 0, 4) = $ck;
substr ($corrupted, $page_size - 8, 4) = $ck;
}
syswrite(FILE, $corrupted);
close FILE;
# Zero the complete page
my $fname= "$ENV{'MYSQLD_DATADIR'}test/t2.ibd";
open(FILE, "+<", $fname) or die;
FILE->autoflush(1);
binmode FILE;
sysseek(FILE, 3*$page_size, 0);
print FILE chr(0) x ($ENV{'INNODB_PAGE_SIZE'});
close FILE;
EOF
# Successful recover from doublewrite buffer
let $restart_parameters=;
--source include/start_mysqld.inc
let SEARCH_FILE= $MYSQLTEST_VARDIR/log/mysqld.1.err;
let SEARCH_PATTERN=InnoDB: Recovered page \\[page id: space=[1-9]*, page number=3\\];
--source include/search_pattern_in_file.inc
check table t1;
check table t2;
select f1, f2 from t1;
select f1, f2 from t2;
SET GLOBAL innodb_fast_shutdown = 0;
let $shutdown_timeout=;
let $restart_parameters=--debug_dbug=+d,ib_log_checkpoint_avoid_hard --innodb_flush_sync=0;
--source ../../mariabackup/include/restart_and_restore.inc
--source ../../suite/innodb/include/no_checkpoint_start.inc
select space into @t1_space_id from information_schema.innodb_sys_tablespaces where name='test/t1';
begin;
insert into t1 values (6, repeat('%', 400));
set global innodb_saved_page_number_debug = 3;
set global innodb_fil_make_page_dirty_debug = @t1_space_id;
set global innodb_buf_flush_list_now = 1;
--let CLEANUP_IF_CHECKPOINT=drop table t1, unexpected_checkpoint;
--source ../../suite/innodb/include/no_checkpoint_end.inc
--echo # Corrupt the page 3 in t1.ibd file
--echo # Assign the maximum value to lsn in doublewrite buffer page
perl;
use IO::Handle;
do "$ENV{MTR_SUITE_DIR}/include/crc32.pl";
my $polynomial = 0x82f63b78; # CRC-32C
my $algo = $ENV{ALGO};
die "Unsupported innodb_checksum_algorithm=$algo\n" unless $algo =~ /crc32/;
my $fname= "$ENV{'MYSQLD_DATADIR'}test/t1.ibd";
my $page_size = $ENV{INNODB_PAGE_SIZE};
my $page;
do "$ENV{MTR_SUITE_DIR}/../innodb/include/crc32.pl";
open(FILE, "+<", $fname) or die;
sysseek(FILE, 3*$page_size, 0);
sysread(FILE, $page, $page_size)==$page_size||die "Unable to read $name\n";
sysseek(FILE, 3*$page_size, 0)||die "Unable to seek $fname\n";
my $corrupted = $page;
# Set FIL_PAGE_LSN to the maximum
substr($corrupted, 16, 8) = chr(255) x 8;
substr($corrupted, $page_size - 8, 8) = chr(255) x 8;
if ($algo =~ /full_crc32/)
{
my $ck = mycrc32(substr($corrupted, 0, $page_size - 4), 0, $polynomial);
substr($corrupted, $page_size - 4, 4) = pack("N", $ck);
}
else
{
# Replace the innodb_checksum_algorithm=crc32 checksum
my $ck= pack("N",
mycrc32(substr($corrupted, 4, 22), 0, $polynomial) ^
mycrc32(substr($corrupted_, 38, $page_size - 38 - 8), 0,
$polynomial));
substr ($corrupted, 0, 4) = $ck;
substr ($corrupted, $page_size - 8, 4) = $ck;
}
syswrite(FILE, $corrupted);
close FILE;
# Change the page lsn to maximum value
open(FILE, "+<", "$ENV{MYSQLD_DATADIR}ibdata1")||die "cannot open ibdata1\n";
sysseek(FILE, 6 * $page_size - 190, 0)||die "Unable to seek ibdata1\n";
sysread(FILE, $_, 12) == 12||die "Unable to read TRX_SYS\n";
my($magic,$d1,$d2)=unpack "NNN", $_;
die "magic=$magic, $d1, $d2\n" unless $magic == 536853855 && $d2 >= $d1 + 64;
sysseek(FILE, $d1 * $page_size, 0)||die "Unable to seek ibdata1\n";
# Find the page in the doublewrite buffer
for (my $d = $d1; $d < $d2 + 64; $d++)
{
sysread(FILE, $_, $page_size)==$page_size||die "Cannot read doublewrite\n";
next unless $_ eq $page;
sysseek(FILE, $d * $page_size, 0)||die "Unable to seek ibdata1\n";
substr($_, 16, 8) = chr(255) x 8;
if ($algo =~ /full_crc32/)
{
my $ck = mycrc32(substr($_, 0, $page_size - 4), 0, $polynomial);
substr($_, $page_size - 4, 4) = pack("N", $ck);
}
else
{
# Replace the innodb_checksum_algorithm=crc32 checksum
my $ck= pack("N",
mycrc32(substr($_, 4, 22), 0, $polynomial) ^
mycrc32(substr($_, 38, $page_size - 38 - 8), 0,
$polynomial));
substr ($_, 0, 4) = $ck;
substr ($_, $page_size - 8, 4) = $ck;
}
syswrite(FILE, $_, $page_size)==$page_size||die;
close(FILE);
exit 0;
}
die "Did not find the page in the doublewrite buffer ($d1,$d2)\n";
EOF
let $restart_parameters=;
--source include/start_mysqld.inc
let SEARCH_FILE= $MYSQLTEST_VARDIR/log/mysqld.1.err;
let SEARCH_PATTERN=InnoDB: Encrypted page \\[page id: space=[1-9]*, page number=3\\] in file .*test.t1.ibd looks corrupted;
--source include/search_pattern_in_file.inc
--error ER_UNKNOWN_STORAGE_ENGINE
select * from t1;
--source ../../mariabackup/include/restart_and_restore.inc
select * from t1;
drop table t2, t1;

View File

@ -1,5 +1,5 @@
--- /home/alice/git/10.3/mysql-test/suite/engines/funcs/r/rpl_sp,myisam,mix.result~ 2021-03-19 17:27:12.935559866 +0100 --- /home/alice/git/10.3/mysql-test/suite/engines/funcs/r/rpl_sp,myisam,mix.result~
+++ /home/alice/git/10.3/mysql-test/suite/engines/funcs/r/rpl_sp,myisam,mix.reject 2021-03-19 17:27:14.071534938 +0100 +++ /home/alice/git/10.3/mysql-test/suite/engines/funcs/r/rpl_sp,myisam,mix.reject
@@ -126,12 +126,15 @@ @@ -126,12 +126,15 @@
show warnings; show warnings;
Level Code Message Level Code Message

View File

@ -1,5 +1,5 @@
--- r/galera_ist_mariabackup.result 2021-04-10 14:21:16.141724901 +0300 --- r/galera_ist_mariabackup.result
+++ r/galera_ist_mariabackup,debug.reject 2021-04-10 14:49:04.455785652 +0300 +++ r/galera_ist_mariabackup,debug.reject
@@ -517,3 +517,187 @@ @@ -517,3 +517,187 @@
1 1
DROP TABLE t1; DROP TABLE t1;

View File

@ -1,5 +1,5 @@
--- r/galera_ist_mariabackup_innodb_flush_logs.result 2021-04-10 14:21:52.661886653 +0300 --- r/galera_ist_mariabackup_innodb_flush_logs.result
+++ r/galera_ist_mariabackup_innodb_flush_logs,debug.reject 2021-04-10 14:49:56.740062774 +0300 +++ r/galera_ist_mariabackup_innodb_flush_logs,debug.reject
@@ -172,3 +172,187 @@ @@ -172,3 +172,187 @@
1 1
DROP TABLE t1; DROP TABLE t1;

View File

@ -1,5 +1,5 @@
--- r/galera_ist_rsync.result 2021-04-10 14:24:05.942467091 +0300 --- r/galera_ist_rsync.result
+++ r/galera_ist_rsync,debug.reject 2021-04-10 14:52:14.236776538 +0300 +++ r/galera_ist_rsync,debug.reject
@@ -517,3 +517,187 @@ @@ -517,3 +517,187 @@
1 1
DROP TABLE t1; DROP TABLE t1;

View File

@ -1,5 +1,5 @@
--- r/galera_sst_mariabackup_data_dir.result 2021-04-10 14:26:02.798965488 +0300 --- r/galera_sst_mariabackup_data_dir.result
+++ r/galera_sst_mariabackup_data_dir,debug.reject 2021-04-10 14:54:44.825538224 +0300 +++ r/galera_sst_mariabackup_data_dir,debug.reject
@@ -516,5 +516,189 @@ @@ -516,5 +516,189 @@
1 1
DROP TABLE t1; DROP TABLE t1;

View File

@ -1,5 +1,5 @@
--- r/galera_sst_mariabackup.result 2021-04-10 14:25:04.142716409 +0300 --- r/galera_sst_mariabackup.result
+++ r/galera_sst_mariabackup,debug.reject 2021-04-10 14:53:30.033162191 +0300 +++ r/galera_sst_mariabackup,debug.reject
@@ -516,5 +516,189 @@ @@ -516,5 +516,189 @@
1 1
DROP TABLE t1; DROP TABLE t1;

View File

@ -0,0 +1,13 @@
connection node_2;
connection node_1;
connection node_1;
connection node_2;
connection node_2;
Shutting down server ...
connection node_1;
Cleaning var directory ...
connection node_2;
Starting server ...
include/assert_grep.inc [mariabackup: Using 128974848 bytes for buffer pool \(set by --use-memory parameter\)]
disconnect node_2;
disconnect node_1;

View File

@ -1,5 +1,5 @@
--- r/galera_sst_rsync2.result 2021-04-10 14:34:48.646288119 +0300 --- r/galera_sst_rsync2.result
+++ r/galera_sst_rsync2,debug.reject 2021-04-10 15:04:10.276286996 +0300 +++ r/galera_sst_rsync2,debug.reject
@@ -516,3 +516,187 @@ @@ -516,3 +516,187 @@
1 1
DROP TABLE t1; DROP TABLE t1;

View File

@ -1,5 +1,5 @@
--- r/galera_sst_rsync_data_dir.result 2021-04-10 14:35:28.090610315 +0300 --- r/galera_sst_rsync_data_dir.result
+++ r/galera_sst_rsync_data_dir,debug.reject 2021-04-10 15:50:26.945234998 +0300 +++ r/galera_sst_rsync_data_dir,debug.reject
@@ -516,3 +516,187 @@ @@ -516,3 +516,187 @@
1 1
DROP TABLE t1; DROP TABLE t1;

View File

@ -0,0 +1,8 @@
!include ../galera_2nodes.cnf
[mysqld]
wsrep_sst_method=mariabackup
wsrep_sst_auth="root:"
[mariabackup]
use_memory=123m

View File

@ -0,0 +1,53 @@
--source include/galera_cluster.inc
--source include/have_innodb.inc
--source include/have_mariabackup.inc
# Save original auto_increment_offset values.
--let $node_1=node_1
--let $node_2=node_2
--source include/auto_increment_offset_save.inc
--connection node_2
--echo Shutting down server ...
--source include/shutdown_mysqld.inc
--connection node_1
--let $wait_condition = SELECT VARIABLE_VALUE = 1 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size'
--source include/wait_condition.inc
#
# Force SST
#
--echo Cleaning var directory ...
--remove_file $MYSQLTEST_VARDIR/mysqld.2/data/grastate.dat
--remove_files_wildcard $MYSQLTEST_VARDIR/mysqld.2/data/mtr
--remove_files_wildcard $MYSQLTEST_VARDIR/mysqld.2/data/performance_schema
--remove_files_wildcard $MYSQLTEST_VARDIR/mysqld.2/data/test
--remove_files_wildcard $MYSQLTEST_VARDIR/mysqld.2/data/mysql
--remove_files_wildcard $MYSQLTEST_VARDIR/mysqld.2/data
--connection node_2
--echo Starting server ...
let $restart_noprint=2;
--source include/start_mysqld.inc
--let $wait_condition = SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
--source include/wait_condition.inc
--let $wait_condition = SELECT VARIABLE_VALUE = 'ON' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_ready';
--source include/wait_condition.inc
# Confirm that IST did not take place
--let $assert_text = mariabackup: Using 128974848 bytes for buffer pool \(set by --use-memory parameter\)
--let $assert_select = mariabackup: Using 128974848 bytes for buffer pool \(set by --use-memory parameter\)
--let $assert_count = 1
--let $assert_file = $MYSQLTEST_VARDIR/mysqld.2/data/mariabackup.prepare.log
--let $assert_only_after = Starting InnoDB instance for recovery
--source include/assert_grep.inc
# Restore original auto_increment_offset values.
--source include/auto_increment_offset_restore.inc
--source include/galera_end.inc

View File

@ -798,58 +798,6 @@ id select_type table type possible_keys key key_len ref rows Extra
3 DERIVED t1 range PRIMARY PRIMARY 4 NULL 1 Using index condition; Using where 3 DERIVED t1 range PRIMARY PRIMARY 4 NULL 1 Using index condition; Using where
DROP TABLE t1,t2,h1; DROP TABLE t1,t2,h1;
DROP VIEW v1; DROP VIEW v1;
CREATE TABLE t1 (a int, index(a)) engine=heap min_rows=10 max_rows=100;
insert into t1 values(1);
select data_length,index_length from information_schema.tables where table_schema="test" and table_name="t1";
data_length index_length
1600 2400
drop table t1;
CREATE TABLE t1 (a int, index(a)) engine=heap min_rows=10 max_rows=10000;
insert into t1 values(1);
select data_length,index_length from information_schema.tables where table_schema="test" and table_name="t1";
data_length index_length
16000 24000
drop table t1;
CREATE TABLE t1 (a int, index(a)) engine=heap min_rows=3000 max_rows=3000;
insert into t1 values(1);
select data_length,index_length from information_schema.tables where table_schema="test" and table_name="t1";
data_length index_length
48000 72000
drop table t1;
CREATE TABLE t1 (a int, index(a)) engine=heap max_rows=15000;
insert into t1 values(1);
select data_length,index_length from information_schema.tables where table_schema="test" and table_name="t1";
data_length index_length
24000 36000
drop table t1;
create table t1 (c1 int, index(c1)) engine=heap max_rows=10000;
insert into t1 select rand(100000000);
insert into t1 select rand(100000000) from t1;
insert into t1 select rand(100000000) from t1;
insert into t1 select rand(100000000) from t1;
insert into t1 select rand(100000000) from t1;
insert into t1 select rand(100000000) from t1;
insert into t1 select rand(100000000) from t1;
insert into t1 select rand(100000000) from t1;
insert into t1 select rand(100000000) from t1;
insert into t1 select rand(100000000) from t1;
insert into t1 select rand(100000000) from t1 limit 488;
select data_length,index_length from information_schema.tables where table_schema="test" and table_name="t1";
data_length index_length
16000 24000
insert into t1 select rand(100000000) from t1 limit 1;
select data_length,index_length from information_schema.tables where table_schema="test" and table_name="t1";
data_length index_length
33024 49024
insert into t1 select rand(100000000) from t1 limit 1000;
select data_length,index_length from information_schema.tables where table_schema="test" and table_name="t1";
data_length index_length
49024 73024
insert into t1 select rand(100000000) from t1;
select data_length,index_length from information_schema.tables where table_schema="test" and table_name="t1";
data_length index_length
81024 121024
drop table t1;
CREATE TABLE t1 (id INT); CREATE TABLE t1 (id INT);
INSERT INTO t1 VALUES (1); INSERT INTO t1 VALUES (1);
INSERT INTO t1 VALUES (2); INSERT INTO t1 VALUES (2);

View File

@ -546,7 +546,7 @@ CREATE TABLE t1 (
); );
INSERT INTO t1 VALUES (19,5,'h'),(20,5,'h'); INSERT INTO t1 VALUES (19,5,'h'),(20,5,'h');
CREATE TABLE t2 (col_int_nokey INT); CREATE TABLE t2 (col_int_nokey INT);
INSERT INTO t2 VALUES (1),(2); INSERT INTO t2 VALUES (1),(2);
@ -567,58 +567,6 @@ DROP TABLE t1,t2,h1;
DROP VIEW v1; DROP VIEW v1;
# End of 5.1 tests # End of 5.1 tests
#
# Show that MIN_ROWS and MAX_ROWS have an effect on how data_length
# and index_length are allocated.
# Result is different for 32 / 64 bit machines as pointer lengths are different
#
CREATE TABLE t1 (a int, index(a)) engine=heap min_rows=10 max_rows=100;
insert into t1 values(1);
--replace_result 800 1600 1200 2400
select data_length,index_length from information_schema.tables where table_schema="test" and table_name="t1";
drop table t1;
CREATE TABLE t1 (a int, index(a)) engine=heap min_rows=10 max_rows=10000;
insert into t1 values(1);
--replace_result 8000 16000 12000 24000
select data_length,index_length from information_schema.tables where table_schema="test" and table_name="t1";
drop table t1;
CREATE TABLE t1 (a int, index(a)) engine=heap min_rows=3000 max_rows=3000;
insert into t1 values(1);
--replace_result 24000 48000 36000 72000
select data_length,index_length from information_schema.tables where table_schema="test" and table_name="t1";
drop table t1;
CREATE TABLE t1 (a int, index(a)) engine=heap max_rows=15000;
insert into t1 values(1);
--replace_result 12000 24000 18000 36000
select data_length,index_length from information_schema.tables where table_schema="test" and table_name="t1";
drop table t1;
create table t1 (c1 int, index(c1)) engine=heap max_rows=10000;
insert into t1 select rand(100000000);
insert into t1 select rand(100000000) from t1;
insert into t1 select rand(100000000) from t1;
insert into t1 select rand(100000000) from t1;
insert into t1 select rand(100000000) from t1;
insert into t1 select rand(100000000) from t1;
insert into t1 select rand(100000000) from t1;
insert into t1 select rand(100000000) from t1;
insert into t1 select rand(100000000) from t1;
insert into t1 select rand(100000000) from t1;
insert into t1 select rand(100000000) from t1 limit 488;
--replace_result 8000 16000 12000 24000
select data_length,index_length from information_schema.tables where table_schema="test" and table_name="t1";
insert into t1 select rand(100000000) from t1 limit 1;
--replace_result 16512 33024 24512 49024
select data_length,index_length from information_schema.tables where table_schema="test" and table_name="t1";
insert into t1 select rand(100000000) from t1 limit 1000;
--replace_result 24512 49024 36512 73024
select data_length,index_length from information_schema.tables where table_schema="test" and table_name="t1";
insert into t1 select rand(100000000) from t1;
--replace_result 40512 81024 60512 121024
select data_length,index_length from information_schema.tables where table_schema="test" and table_name="t1";
drop table t1;
# #
# MDEV-5905 Creating tmp. memory table kills the server # MDEV-5905 Creating tmp. memory table kills the server
# #

View File

@ -0,0 +1,40 @@
--- suite/heap/heap_memory_used.result
+++ suite/heap/heap_memory_used.reject
@@ -17,13 +17,13 @@
insert into t1 values(1);
select data_length,index_length from information_schema.tables where table_schema="test" and table_name="t1";
data_length index_length
-65504 131040
+32736 65504
drop table t1;
CREATE TABLE t1 (a int, index(a)) engine=heap max_rows=15000;
insert into t1 values(1);
select data_length,index_length from information_schema.tables where table_schema="test" and table_name="t1";
data_length index_length
-16352 32736
+16352 16352
drop table t1;
create table t1 (c1 int, index(c1)) engine=heap max_rows=10000;
insert into t1 select rand(100000000);
@@ -39,17 +39,17 @@
insert into t1 select rand(100000000) from t1 limit 488;
select data_length,index_length from information_schema.tables where table_schema="test" and table_name="t1";
data_length index_length
-32704 32704
+16352 16352
insert into t1 select rand(100000000) from t1 limit 1;
select data_length,index_length from information_schema.tables where table_schema="test" and table_name="t1";
data_length index_length
-32704 32704
+16352 16352
insert into t1 select rand(100000000) from t1 limit 1000;
select data_length,index_length from information_schema.tables where table_schema="test" and table_name="t1";
data_length index_length
-49056 65408
+32704 32704
insert into t1 select rand(100000000) from t1;
select data_length,index_length from information_schema.tables where table_schema="test" and table_name="t1";
data_length index_length
-81760 114464
+49056 65408
drop table t1;

View File

@ -0,0 +1,55 @@
#
# Test of heap table memory usage
#
CREATE TABLE t1 (a int, index(a)) engine=heap min_rows=10 max_rows=100;
insert into t1 values(1);
select data_length,index_length from information_schema.tables where table_schema="test" and table_name="t1";
data_length index_length
16352 16352
drop table t1;
CREATE TABLE t1 (a int, index(a)) engine=heap min_rows=10 max_rows=10000;
insert into t1 values(1);
select data_length,index_length from information_schema.tables where table_schema="test" and table_name="t1";
data_length index_length
16352 16352
drop table t1;
CREATE TABLE t1 (a int, index(a)) engine=heap min_rows=3000 max_rows=3000;
insert into t1 values(1);
select data_length,index_length from information_schema.tables where table_schema="test" and table_name="t1";
data_length index_length
65504 131040
drop table t1;
CREATE TABLE t1 (a int, index(a)) engine=heap max_rows=15000;
insert into t1 values(1);
select data_length,index_length from information_schema.tables where table_schema="test" and table_name="t1";
data_length index_length
16352 32736
drop table t1;
create table t1 (c1 int, index(c1)) engine=heap max_rows=10000;
insert into t1 select rand(100000000);
insert into t1 select rand(100000000) from t1;
insert into t1 select rand(100000000) from t1;
insert into t1 select rand(100000000) from t1;
insert into t1 select rand(100000000) from t1;
insert into t1 select rand(100000000) from t1;
insert into t1 select rand(100000000) from t1;
insert into t1 select rand(100000000) from t1;
insert into t1 select rand(100000000) from t1;
insert into t1 select rand(100000000) from t1;
insert into t1 select rand(100000000) from t1 limit 488;
select data_length,index_length from information_schema.tables where table_schema="test" and table_name="t1";
data_length index_length
32704 32704
insert into t1 select rand(100000000) from t1 limit 1;
select data_length,index_length from information_schema.tables where table_schema="test" and table_name="t1";
data_length index_length
32704 32704
insert into t1 select rand(100000000) from t1 limit 1000;
select data_length,index_length from information_schema.tables where table_schema="test" and table_name="t1";
data_length index_length
49056 65408
insert into t1 select rand(100000000) from t1;
select data_length,index_length from information_schema.tables where table_schema="test" and table_name="t1";
data_length index_length
81760 114464
drop table t1;

View File

@ -0,0 +1,50 @@
--echo #
--echo # Test of heap table memory usage
--echo #
--source include/word_size.inc
#
# Show that MIN_ROWS and MAX_ROWS have an effect on how data_length
# and index_length are allocated.
# Result is different for 32 / 64 bit machines as pointer lengths are different
#
CREATE TABLE t1 (a int, index(a)) engine=heap min_rows=10 max_rows=100;
insert into t1 values(1);
select data_length,index_length from information_schema.tables where table_schema="test" and table_name="t1";
drop table t1;
CREATE TABLE t1 (a int, index(a)) engine=heap min_rows=10 max_rows=10000;
insert into t1 values(1);
select data_length,index_length from information_schema.tables where table_schema="test" and table_name="t1";
drop table t1;
CREATE TABLE t1 (a int, index(a)) engine=heap min_rows=3000 max_rows=3000;
insert into t1 values(1);
select data_length,index_length from information_schema.tables where table_schema="test" and table_name="t1";
drop table t1;
CREATE TABLE t1 (a int, index(a)) engine=heap max_rows=15000;
insert into t1 values(1);
select data_length,index_length from information_schema.tables where table_schema="test" and table_name="t1";
drop table t1;
create table t1 (c1 int, index(c1)) engine=heap max_rows=10000;
insert into t1 select rand(100000000);
insert into t1 select rand(100000000) from t1;
insert into t1 select rand(100000000) from t1;
insert into t1 select rand(100000000) from t1;
insert into t1 select rand(100000000) from t1;
insert into t1 select rand(100000000) from t1;
insert into t1 select rand(100000000) from t1;
insert into t1 select rand(100000000) from t1;
insert into t1 select rand(100000000) from t1;
insert into t1 select rand(100000000) from t1;
insert into t1 select rand(100000000) from t1 limit 488;
select data_length,index_length from information_schema.tables where table_schema="test" and table_name="t1";
insert into t1 select rand(100000000) from t1 limit 1;
select data_length,index_length from information_schema.tables where table_schema="test" and table_name="t1";
insert into t1 select rand(100000000) from t1 limit 1000;
select data_length,index_length from information_schema.tables where table_schema="test" and table_name="t1";
insert into t1 select rand(100000000) from t1;
select data_length,index_length from information_schema.tables where table_schema="test" and table_name="t1";
drop table t1;

View File

@ -1,5 +1,5 @@
--- alter_algorithm.result 2020-04-30 21:39:48.923115511 +0530 --- alter_algorithm.result
+++ alter_algorithm.reject 2020-04-30 21:45:04.131642093 +0530 +++ alter_algorithm.reject
@@ -7,43 +7,43 @@ @@ -7,43 +7,43 @@
INSERT INTO t1(f1, f2, f3) VALUES(1, 1, 1); INSERT INTO t1(f1, f2, f3) VALUES(1, 1, 1);
SELECT @@alter_algorithm; SELECT @@alter_algorithm;

View File

@ -1,5 +1,5 @@
--- alter_algorithm.result 2020-04-30 21:39:48.923115511 +0530 --- alter_algorithm.result
+++ alter_algorithm.reject 2020-04-30 21:47:08.245465018 +0530 +++ alter_algorithm.reject
@@ -7,43 +7,35 @@ @@ -7,43 +7,35 @@
INSERT INTO t1(f1, f2, f3) VALUES(1, 1, 1); INSERT INTO t1(f1, f2, f3) VALUES(1, 1, 1);
SELECT @@alter_algorithm; SELECT @@alter_algorithm;

View File

@ -1,5 +1,5 @@
--- alter_algorithm.result 2020-04-30 21:39:48.923115511 +0530 --- alter_algorithm.result
+++ alter_algorithm.reject 2020-04-30 21:52:10.785967739 +0530 +++ alter_algorithm.reject
@@ -7,43 +7,35 @@ @@ -7,43 +7,35 @@
INSERT INTO t1(f1, f2, f3) VALUES(1, 1, 1); INSERT INTO t1(f1, f2, f3) VALUES(1, 1, 1);
SELECT @@alter_algorithm; SELECT @@alter_algorithm;

View File

@ -1,5 +1,5 @@
--- instant_alter_limit.result 2020-05-26 18:01:27.377946439 +0530 --- instant_alter_limit.result
+++ instant_alter_limit,16k.reject 2020-05-26 20:14:38.452463919 +0530 +++ instant_alter_limit,16k.reject
@@ -45,3 +45,10 @@ @@ -45,3 +45,10 @@
instants instants
502 502

View File

@ -1,5 +1,5 @@
--- instant_alter_limit.result 2020-05-26 18:01:27.377946439 +0530 --- instant_alter_limit.result
+++ instant_alter_limit,32k.reject 2020-05-26 19:59:19.743877366 +0530 +++ instant_alter_limit,32k.reject
@@ -43,5 +43,12 @@ @@ -43,5 +43,12 @@
FROM information_schema.global_status FROM information_schema.global_status
WHERE variable_name = 'innodb_instant_alter_column'; WHERE variable_name = 'innodb_instant_alter_column';

View File

@ -1,5 +1,5 @@
--- instant_alter_limit.result 2020-05-26 18:01:27.377946439 +0530 --- instant_alter_limit.result
+++ instant_alter_limit,4k.reject 2020-05-26 20:17:53.314736548 +0530 +++ instant_alter_limit,4k.reject
@@ -5,6 +5,276 @@ @@ -5,6 +5,276 @@
ENGINE=InnoDB; ENGINE=InnoDB;
INSERT INTO t VALUES(1,2,3,4,5); INSERT INTO t VALUES(1,2,3,4,5);

View File

@ -1,5 +1,5 @@
--- instant_alter_limit.result 2020-05-26 18:01:27.377946439 +0530 --- instant_alter_limit.result
+++ instant_alter_limit,64k.reject 2020-05-26 20:00:22.499711222 +0530 +++ instant_alter_limit,64k.reject
@@ -43,5 +43,12 @@ @@ -43,5 +43,12 @@
FROM information_schema.global_status FROM information_schema.global_status
WHERE variable_name = 'innodb_instant_alter_column'; WHERE variable_name = 'innodb_instant_alter_column';

View File

@ -1,5 +1,5 @@
--- instant_alter_limit.result 2020-05-26 18:01:27.377946439 +0530 --- instant_alter_limit.result
+++ instant_alter_limit,8k.reject 2020-05-26 20:19:50.881869095 +0530 +++ instant_alter_limit,8k.reject
@@ -5,6 +5,28 @@ @@ -5,6 +5,28 @@
ENGINE=InnoDB; ENGINE=InnoDB;
INSERT INTO t VALUES(1,2,3,4,5); INSERT INTO t VALUES(1,2,3,4,5);

View File

@ -1,5 +1,5 @@
--- max_record_size.result 2019-07-03 11:54:44.591421526 +0300 --- max_record_size.result
+++ max_record_size.reject 2019-07-03 12:51:26.070418078 +0300 +++ max_record_size.reject
@@ -3,45 +3,65 @@ @@ -3,45 +3,65 @@
c1 CHAR(255), c2 CHAR(255), c3 CHAR(255), c4 CHAR(255), c1 CHAR(255), c2 CHAR(255), c3 CHAR(255), c4 CHAR(255),
c5 CHAR(255), c6 CHAR(255), c7 CHAR(255), c8 CHAR(255), c5 CHAR(255), c6 CHAR(255), c7 CHAR(255), c8 CHAR(255),

View File

@ -1,5 +1,5 @@
--- max_record_size.result 2019-07-03 11:54:44.591421526 +0300 --- max_record_size.result
+++ max_record_size.reject 2019-07-03 12:52:54.580956978 +0300 +++ max_record_size.reject
@@ -3,45 +3,207 @@ @@ -3,45 +3,207 @@
c1 CHAR(255), c2 CHAR(255), c3 CHAR(255), c4 CHAR(255), c1 CHAR(255), c2 CHAR(255), c3 CHAR(255), c4 CHAR(255),
c5 CHAR(255), c6 CHAR(255), c7 CHAR(255), c8 CHAR(255), c5 CHAR(255), c6 CHAR(255), c7 CHAR(255), c8 CHAR(255),

View File

@ -1,5 +1,5 @@
--- max_record_size.result 2019-07-03 11:54:44.591421526 +0300 --- max_record_size.result
+++ max_record_size.reject 2019-07-03 12:55:05.258762945 +0300 +++ max_record_size.reject
@@ -3,45 +3,65 @@ @@ -3,45 +3,65 @@
c1 CHAR(255), c2 CHAR(255), c3 CHAR(255), c4 CHAR(255), c1 CHAR(255), c2 CHAR(255), c3 CHAR(255), c4 CHAR(255),
c5 CHAR(255), c6 CHAR(255), c7 CHAR(255), c8 CHAR(255), c5 CHAR(255), c6 CHAR(255), c7 CHAR(255), c8 CHAR(255),

View File

@ -1,5 +1,5 @@
--- max_record_size.result 2019-07-03 11:54:44.591421526 +0300 --- max_record_size.result
+++ max_record_size.reject 2019-07-03 12:27:08.004932026 +0300 +++ max_record_size.reject
@@ -3,45 +3,104 @@ @@ -3,45 +3,104 @@
c1 CHAR(255), c2 CHAR(255), c3 CHAR(255), c4 CHAR(255), c1 CHAR(255), c2 CHAR(255), c3 CHAR(255), c4 CHAR(255),
c5 CHAR(255), c6 CHAR(255), c7 CHAR(255), c8 CHAR(255), c5 CHAR(255), c6 CHAR(255), c7 CHAR(255), c8 CHAR(255),

View File

@ -1,5 +1,5 @@
--- max_record_size.result 2019-07-03 11:54:44.591421526 +0300 --- max_record_size.result
+++ max_record_size.reject 2019-07-03 12:38:41.609328820 +0300 +++ max_record_size.reject
@@ -3,45 +3,351 @@ @@ -3,45 +3,351 @@
c1 CHAR(255), c2 CHAR(255), c3 CHAR(255), c4 CHAR(255), c1 CHAR(255), c2 CHAR(255), c3 CHAR(255), c4 CHAR(255),
c5 CHAR(255), c6 CHAR(255), c7 CHAR(255), c8 CHAR(255), c5 CHAR(255), c6 CHAR(255), c7 CHAR(255), c8 CHAR(255),

View File

@ -1,5 +1,5 @@
--- max_record_size.result 2019-07-03 11:54:44.591421526 +0300 --- max_record_size.result
+++ max_record_size.reject 2019-07-03 12:41:03.319664978 +0300 +++ max_record_size.reject
@@ -3,45 +3,104 @@ @@ -3,45 +3,104 @@
c1 CHAR(255), c2 CHAR(255), c3 CHAR(255), c4 CHAR(255), c1 CHAR(255), c2 CHAR(255), c3 CHAR(255), c4 CHAR(255),
c5 CHAR(255), c6 CHAR(255), c7 CHAR(255), c8 CHAR(255), c5 CHAR(255), c6 CHAR(255), c7 CHAR(255), c8 CHAR(255),

View File

@ -1,5 +1,5 @@
--- max_record_size.result 2019-07-03 11:54:44.591421526 +0300 --- max_record_size.result
+++ max_record_size.reject 2019-07-03 12:56:23.489432164 +0300 +++ max_record_size.reject
@@ -1,47 +1,37 @@ @@ -1,47 +1,37 @@
call mtr.add_suppression("Cannot add field `.*` in table `test`.`t1` because after adding it, the row size is"); call mtr.add_suppression("Cannot add field `.*` in table `test`.`t1` because after adding it, the row size is");
CREATE TABLE t1 ( CREATE TABLE t1 (

View File

@ -1,5 +1,5 @@
--- max_record_size.result 2019-07-03 11:54:44.591421526 +0300 --- max_record_size.result
+++ max_record_size.reject 2019-07-03 12:57:38.636143710 +0300 +++ max_record_size.reject
@@ -1,47 +1,103 @@ @@ -1,47 +1,103 @@
call mtr.add_suppression("Cannot add field `.*` in table `test`.`t1` because after adding it, the row size is"); call mtr.add_suppression("Cannot add field `.*` in table `test`.`t1` because after adding it, the row size is");
CREATE TABLE t1 ( CREATE TABLE t1 (

View File

@ -1,5 +1,5 @@
--- max_record_size.result 2019-07-03 11:54:44.591421526 +0300 --- max_record_size.result
+++ max_record_size.reject 2019-07-03 12:58:58.318768169 +0300 +++ max_record_size.reject
@@ -1,47 +1,37 @@ @@ -1,47 +1,37 @@
call mtr.add_suppression("Cannot add field `.*` in table `test`.`t1` because after adding it, the row size is"); call mtr.add_suppression("Cannot add field `.*` in table `test`.`t1` because after adding it, the row size is");
CREATE TABLE t1 ( CREATE TABLE t1 (

View File

@ -1,5 +1,5 @@
--- max_record_size.result 2019-07-03 11:54:44.591421526 +0300 --- max_record_size.result
+++ max_record_size.reject 2019-07-03 12:45:21.760116841 +0300 +++ max_record_size.reject
@@ -3,45 +3,186 @@ @@ -3,45 +3,186 @@
c1 CHAR(255), c2 CHAR(255), c3 CHAR(255), c4 CHAR(255), c1 CHAR(255), c2 CHAR(255), c3 CHAR(255), c4 CHAR(255),
c5 CHAR(255), c6 CHAR(255), c7 CHAR(255), c8 CHAR(255), c5 CHAR(255), c6 CHAR(255), c7 CHAR(255), c8 CHAR(255),

View File

@ -1,5 +1,5 @@
--- max_record_size.result 2019-07-03 11:54:44.591421526 +0300 --- max_record_size.result
+++ max_record_size.reject 2019-07-03 12:48:32.453208310 +0300 +++ max_record_size.reject
@@ -3,45 +3,486 @@ @@ -3,45 +3,486 @@
c1 CHAR(255), c2 CHAR(255), c3 CHAR(255), c4 CHAR(255), c1 CHAR(255), c2 CHAR(255), c3 CHAR(255), c4 CHAR(255),
c5 CHAR(255), c6 CHAR(255), c7 CHAR(255), c8 CHAR(255), c5 CHAR(255), c6 CHAR(255), c7 CHAR(255), c8 CHAR(255),

View File

@ -1,5 +1,5 @@
--- max_record_size.result 2019-07-03 11:54:44.591421526 +0300 --- max_record_size.result
+++ max_record_size.reject 2019-07-03 12:50:05.663724193 +0300 +++ max_record_size.reject
@@ -3,45 +3,104 @@ @@ -3,45 +3,104 @@
c1 CHAR(255), c2 CHAR(255), c3 CHAR(255), c4 CHAR(255), c1 CHAR(255), c2 CHAR(255), c3 CHAR(255), c4 CHAR(255),
c5 CHAR(255), c6 CHAR(255), c7 CHAR(255), c8 CHAR(255), c5 CHAR(255), c6 CHAR(255), c7 CHAR(255), c8 CHAR(255),

View File

@ -1,5 +1,5 @@
--- max_record_size.result 2019-07-03 11:54:44.591421526 +0300 --- max_record_size.result
+++ max_record_size.reject 2019-07-03 13:00:25.037261867 +0300 +++ max_record_size.reject
@@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@
c9 CHAR(255), c10 CHAR(255), c11 CHAR(255), c12 CHAR(255), c9 CHAR(255), c10 CHAR(255), c11 CHAR(255), c12 CHAR(255),
c13 CHAR(255), c14 CHAR(255), c15 CHAR(255), c16 CHAR(255) c13 CHAR(255), c14 CHAR(255), c15 CHAR(255), c16 CHAR(255)

View File

@ -1,5 +1,5 @@
--- max_record_size.result 2019-07-03 11:54:44.591421526 +0300 --- max_record_size.result
+++ max_record_size.reject 2019-07-03 13:01:51.215756779 +0300 +++ max_record_size.reject
@@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@
c9 CHAR(255), c10 CHAR(255), c11 CHAR(255), c12 CHAR(255), c9 CHAR(255), c10 CHAR(255), c11 CHAR(255), c12 CHAR(255),
c13 CHAR(255), c14 CHAR(255), c15 CHAR(255), c16 CHAR(255) c13 CHAR(255), c14 CHAR(255), c15 CHAR(255), c16 CHAR(255)

View File

@ -1,5 +1,5 @@
--- recovery_memory.result 2024-06-21 12:54:38.026355524 +0530 --- recovery_memory.result
+++ recovery_memory.reject 2024-06-21 17:22:49.394535026 +0530 +++ recovery_memory.reject
@@ -23,6 +23,7 @@ @@ -23,6 +23,7 @@
CREATE TABLE t1(f1 INT NOT NULL)ENGINE=InnoDB; CREATE TABLE t1(f1 INT NOT NULL)ENGINE=InnoDB;
INSERT INTO t1 SELECT * FROM seq_1_to_65536; INSERT INTO t1 SELECT * FROM seq_1_to_65536;

View File

@ -1,5 +1,5 @@
--- ./suite/innodb/r/restart.result 2022-01-18 20:36:56.054653376 +1100 --- ./suite/innodb/r/restart.result
+++ suite/innodb/r/restart.reject 2022-01-19 08:12:28.602794678 +1100 +++ suite/innodb/r/restart.reject
@@ -32,10 +32,10 @@ @@ -32,10 +32,10 @@
SELECT @@innodb_buffer_pool_size INTO @innodb_buffer_pool_size_orig; SELECT @@innodb_buffer_pool_size INTO @innodb_buffer_pool_size_orig;
SELECT CEILING((256 + 64) * @@innodb_page_size / 1048576) * 1048576 INTO @min_pool_size; SELECT CEILING((256 + 64) * @@innodb_page_size / 1048576) * 1048576 INTO @min_pool_size;

Some files were not shown because too many files have changed in this diff Show More