Skip to content

Commit

Permalink
Merge 10.5 into 10.6
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-m committed Mar 26, 2021
2 parents e9e1890 + 2e67b9f commit 356c149
Show file tree
Hide file tree
Showing 74 changed files with 151 additions and 235 deletions.
2 changes: 2 additions & 0 deletions include/my_valgrind.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#if __has_feature(memory_sanitizer)
# include <sanitizer/msan_interface.h>
# define HAVE_valgrind
# define HAVE_MEM_CHECK
# define MEM_UNDEFINED(a,len) __msan_allocated_memory(a,len)
# define MEM_MAKE_ADDRESSABLE(a,len) MEM_UNDEFINED(a,len)
# define MEM_MAKE_DEFINED(a,len) __msan_unpoison(a,len)
Expand All @@ -38,6 +39,7 @@
# define REDZONE_SIZE 8
#elif defined(HAVE_VALGRIND_MEMCHECK_H) && defined(HAVE_valgrind)
# include <valgrind/memcheck.h>
# define HAVE_MEM_CHECK
# define MEM_UNDEFINED(a,len) VALGRIND_MAKE_MEM_UNDEFINED(a,len)
# define MEM_MAKE_ADDRESSABLE(a,len) MEM_UNDEFINED(a,len)
# define MEM_MAKE_DEFINED(a,len) VALGRIND_MAKE_MEM_DEFINED(a,len)
Expand Down
2 changes: 1 addition & 1 deletion man/aria_chk.1
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ Change the collation used by the index.
Faster repair by not modifying the data file.
One can give a second '\-q' to force aria_chk to
modify the original datafile in case of duplicate keys.
NOTE: Tables where the data file is currupted can't be
NOTE: Tables where the data file is corrupted can't be
fixed with this option.
.TP
\fB\-u\fR, \fB\-\-unpack\fR
Expand Down
2 changes: 1 addition & 1 deletion man/aria_read_log.1
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Start applying from last checkpoint
Print less information during apply/undo phase
.TP
\fB\-T\fR, \fB\-\-tables\-to\-redo\fR=\fIname\fR
List of tables sepearated with , that we should apply
List of tables separated with , that we should apply
REDO on. Use this if you only want to recover some tables
.TP
\fB\-t\fR, \fB\-\-tmpdir\fR=\fIname\fR
Expand Down
2 changes: 1 addition & 1 deletion mysql-test/include/index_merge1.inc
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ drop table t1;
if ($merge_table_support)
{
#
# BUG#17314: Index_merge/intersection not choosen by the optimizer for MERGE tables
# BUG#17314: Index_merge/intersection not chosen by the optimizer for MERGE tables
#
create table t1 (
a int, b int,
Expand Down
16 changes: 8 additions & 8 deletions mysql-test/include/ps_conv.inc
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ select @arg01:= c1, @arg02:= c2, @arg03:= c3, @arg04:= c4,
@arg25:= c25, @arg26:= c26, @arg27:= c27, @arg28:= c28,
@arg29:= c29, @arg30:= c30, @arg31:= c31, @arg32:= c32
from t9 where c1= 1 ;
# get as much informations about the parameters as possible
# get as much information about the parameters as possible
--enable_metadata
execute full_info ;
--disable_metadata
Expand All @@ -171,7 +171,7 @@ select @arg01:= c1, @arg02:= c2, @arg03:= c3, @arg04:= c4,
@arg25:= c25, @arg26:= c26, @arg27:= c27, @arg28:= c28,
@arg29:= c29, @arg30:= c30, @arg31:= c31, @arg32:= c32
from t9 where c1= 0 ;
# get as much informations about the parameters as possible
# get as much information about the parameters as possible
--enable_metadata
execute full_info ;
--disable_metadata
Expand All @@ -188,14 +188,14 @@ prepare stmt1 from "select
from t9 where c1= ?" ;
set @my_key= 1 ;
execute stmt1 using @my_key ;
# get as much informations about the parameters as possible
# get as much information about the parameters as possible
--enable_metadata
execute full_info ;
--disable_metadata
# now the same procedure with the record containing so many NULLs
set @my_key= 0 ;
execute stmt1 using @my_key ;
# get as much informations about the parameters as possible
# get as much information about the parameters as possible
--enable_metadata
execute full_info ;
--disable_metadata
Expand All @@ -215,7 +215,7 @@ into @arg01, @arg02, @arg03, @arg04, @arg05, @arg06, @arg07, @arg08,
@arg17, @arg18, @arg19, @arg20, @arg21, @arg22, @arg23, @arg24,
@arg25, @arg26, @arg27, @arg28, @arg29, @arg30, @arg31, @arg32
from t9 where c1= 1 ;
# get as much informations about the parameters as possible
# get as much information about the parameters as possible
--enable_metadata
execute full_info ;
--disable_metadata
Expand All @@ -228,7 +228,7 @@ into @arg01, @arg02, @arg03, @arg04, @arg05, @arg06, @arg07, @arg08,
@arg17, @arg18, @arg19, @arg20, @arg21, @arg22, @arg23, @arg24,
@arg25, @arg26, @arg27, @arg28, @arg29, @arg30, @arg31, @arg32
from t9 where c1= 0 ;
# get as much informations about the parameters as possible
# get as much information about the parameters as possible
--enable_metadata
execute full_info ;
--disable_metadata
Expand All @@ -243,15 +243,15 @@ into @arg01, @arg02, @arg03, @arg04, @arg05, @arg06, @arg07, @arg08,
from t9 where c1= ?" ;
set @my_key= 1 ;
execute stmt1 using @my_key ;
# get as much informations about the parameters as possible
# get as much information about the parameters as possible
--enable_metadata
execute full_info ;
--disable_metadata
# now the same procedure with the record containing so many NULLs
# Bug#5034: prepared "select 1 into @arg15", second execute crashes server
set @my_key= 0 ;
execute stmt1 using @my_key ;
# get as much informations about the parameters as possible
# get as much information about the parameters as possible
--enable_metadata
execute full_info ;
--disable_metadata
Expand Down
2 changes: 1 addition & 1 deletion mysql-test/main/partition.test
Original file line number Diff line number Diff line change
Expand Up @@ -1054,7 +1054,7 @@ drop table t1;
#
# Bug #17754 Change to explicit removal of partitioning scheme
# Also added a number of tests to ensure that proper engine is
# choosen in all kinds of scenarios.
# chosen in all kinds of scenarios.
#

create table t1 (a int)
Expand Down
2 changes: 1 addition & 1 deletion mysql-test/main/ps_1general.test
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ select * from t1 where a = @var ;

# 3. DEALLOCATE PREPARE stmt_name;
#
# Send the server the order to drop the parse informations.
# Send the server the order to drop the parse information.
# The server will reply with "Query Ok" or an error message.
DEALLOCATE PREPARE stmt ;

Expand Down
2 changes: 1 addition & 1 deletion mysql-test/main/sp-error.result
Original file line number Diff line number Diff line change
Expand Up @@ -2242,7 +2242,7 @@ H2
Warnings:
Warning 1642 Unhandled user-defined warning condition

# -- Check that handlers are choosen properly in case of deep stack and
# -- Check that handlers are chosen properly in case of deep stack and
# -- nested SQL-blocks.

CREATE PROCEDURE p10()
Expand Down
2 changes: 1 addition & 1 deletion mysql-test/main/sp-error.test
Original file line number Diff line number Diff line change
Expand Up @@ -3162,7 +3162,7 @@ END|
CALL p9()|

--echo
--echo # -- Check that handlers are choosen properly in case of deep stack and
--echo # -- Check that handlers are chosen properly in case of deep stack and
--echo # -- nested SQL-blocks.
--echo

Expand Down
2 changes: 1 addition & 1 deletion mysql-test/suite/funcs_1/r/is_engines_federated.result
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ SELECT * FROM information_schema.engines
WHERE ENGINE = 'FEDERATED';
ENGINE FEDERATED
SUPPORT YES
COMMENT Allows to access tables on other MariaDB servers, supports transactions and more
COMMENT Allows one to access tables on other MariaDB servers, supports transactions and more
TRANSACTIONS YES
XA NO
SAVEPOINTS YES
1 change: 1 addition & 0 deletions mysql-test/suite/innodb/r/innodb-wl5522-debug.result
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ call mtr.add_suppression("InnoDB: Cannot calculate statistics for table .*");
call mtr.add_suppression("InnoDB: Page 0 at offset 0 looks corrupted in file");
call mtr.add_suppression("InnoDB: Page for tablespace ");
call mtr.add_suppression("InnoDB: Invalid FSP_SPACE_FLAGS=");
call mtr.add_suppression("InnoDB: Unknown index id .* on page");
FLUSH TABLES;
SET GLOBAL innodb_file_per_table = 1;
CREATE TABLE t1 (c1 INT) ENGINE = InnoDB;
Expand Down
2 changes: 1 addition & 1 deletion mysql-test/suite/innodb/r/innodb_bug34300.result
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Bug#34300 Tinyblob & tinytext fields currupted after export/import and alter in 5.1
# Bug#34300 Tinyblob & tinytext fields corrupted after export/import and alter in 5.1
#
SET @@global.max_allowed_packet=16777216;
connect newconn, localhost, root,,;
Expand Down
2 changes: 1 addition & 1 deletion mysql-test/suite/innodb/r/instant_alter_charset.result
Original file line number Diff line number Diff line change
Expand Up @@ -1847,7 +1847,7 @@ HEX(a)
0061
DROP TABLE t1;
#
# MDEV-19285 INSTANT ALTER from ascii_general_ci to latin1_general_ci produces currupt data
# MDEV-19285 INSTANT ALTER from ascii_general_ci to latin1_general_ci produces corrupt data
#
CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET ascii COLLATE ascii_general_ci, PRIMARY KEY(a)) ENGINE=InnoDB;
INSERT INTO t1 VALUES ('a'),(0xC0),('b');
Expand Down
6 changes: 5 additions & 1 deletion mysql-test/suite/innodb/t/innodb-alter.test
Original file line number Diff line number Diff line change
Expand Up @@ -583,10 +583,14 @@ DROP TABLE t1, parent;
--echo #BUG#21514135 SCHEMA MISMATCH ERROR WHEN IMPORTING TABLESPACE AFTER
--echo #DROPPING AN INDEX
--echo #

--disable_query_log
call mtr.add_suppression("\\[Warning\\] InnoDB: Unknown index id .* on page");
--enable_query_log

let $source_db = source_db;
let $dest_db = dest_db;

--source include/default_charset.inc
SET NAMES utf8mb4;

eval CREATE DATABASE $source_db;
Expand Down
1 change: 1 addition & 0 deletions mysql-test/suite/innodb/t/innodb-wl5522-debug.test
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ call mtr.add_suppression("InnoDB: Cannot calculate statistics for table .*");
call mtr.add_suppression("InnoDB: Page 0 at offset 0 looks corrupted in file");
call mtr.add_suppression("InnoDB: Page for tablespace ");
call mtr.add_suppression("InnoDB: Invalid FSP_SPACE_FLAGS=");
call mtr.add_suppression("InnoDB: Unknown index id .* on page");
FLUSH TABLES;

let MYSQLD_DATADIR =`SELECT @@datadir`;
Expand Down
2 changes: 1 addition & 1 deletion mysql-test/suite/innodb/t/innodb_bug34300.test
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--echo #
--echo # Bug#34300 Tinyblob & tinytext fields currupted after export/import and alter in 5.1
--echo # Bug#34300 Tinyblob & tinytext fields corrupted after export/import and alter in 5.1
--echo #

-- source include/have_innodb.inc
Expand Down
2 changes: 1 addition & 1 deletion mysql-test/suite/innodb/t/instant_alter_charset.test
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ SELECT HEX(a) FROM t1;
DROP TABLE t1;

--echo #
--echo # MDEV-19285 INSTANT ALTER from ascii_general_ci to latin1_general_ci produces currupt data
--echo # MDEV-19285 INSTANT ALTER from ascii_general_ci to latin1_general_ci produces corrupt data
--echo #

CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET ascii COLLATE ascii_general_ci, PRIMARY KEY(a)) ENGINE=InnoDB;
Expand Down
6 changes: 6 additions & 0 deletions mysql-test/suite/innodb_zip/r/wl5522_debug_zip.result
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ call mtr.add_suppression("InnoDB: Cannot calculate statistics for table .* becau
call mtr.add_suppression("InnoDB: Page 0 at offset 0 looks corrupted in file");
call mtr.add_suppression("InnoDB: Page for tablespace ");
call mtr.add_suppression("InnoDB: Invalid FSP_SPACE_FLAGS=0x");
call mtr.add_suppression("InnoDB: Unknown index id .* on page");
call mtr.add_suppression("InnoDB: Operating system error number");
call mtr.add_suppression("InnoDB: The error means");
call mtr.add_suppression("InnoDB: If you are installing InnoDB");
call mtr.add_suppression("InnoDB: Cannot open datafile .*t1\\.ibd");
call mtr.add_suppression("InnoDB: Ignoring tablespace for `test`\\.`t1`");
FLUSH TABLES;
SET SESSION innodb_strict_mode=1;
CREATE TABLE t1 (c1 INT) ENGINE = Innodb
Expand Down
6 changes: 6 additions & 0 deletions mysql-test/suite/innodb_zip/t/wl5522_debug_zip.test
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ call mtr.add_suppression("InnoDB: Cannot calculate statistics for table .* becau
call mtr.add_suppression("InnoDB: Page 0 at offset 0 looks corrupted in file");
call mtr.add_suppression("InnoDB: Page for tablespace ");
call mtr.add_suppression("InnoDB: Invalid FSP_SPACE_FLAGS=0x");
call mtr.add_suppression("InnoDB: Unknown index id .* on page");
call mtr.add_suppression("InnoDB: Operating system error number");
call mtr.add_suppression("InnoDB: The error means");
call mtr.add_suppression("InnoDB: If you are installing InnoDB");
call mtr.add_suppression("InnoDB: Cannot open datafile .*t1\\.ibd");
call mtr.add_suppression("InnoDB: Ignoring tablespace for `test`\\.`t1`");
FLUSH TABLES;

let MYSQLD_DATADIR =`SELECT @@datadir`;
Expand Down
4 changes: 2 additions & 2 deletions mysql-test/suite/parts/inc/partition.pre
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ if (0)
# That means statements which
# - are most time of low interest and do auxiliary stuff
# like generating the next SQL statement to be executed
# - additional statements giving informations about table
# - additional statements giving information about table
# contents or the value of some variables
# You will get huge differences, because the file with the
# expected results was created with $debug = 0 .
Expand Down Expand Up @@ -221,7 +221,7 @@ if (0)
# $ls= 1 (default)
# --> Display the table related directory content via
# "ls $MYSQLTEST_VARDIR/mysqld.1/data/test/t1*"
# if these informations were collected.
# if these information were collected.
# This is probably not portable to some OS.
# $ls= 0
# --> Omit displaying the directory
Expand Down
2 changes: 1 addition & 1 deletion mysql-test/suite/parts/inc/partition_engine.inc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# This routine is only useful for the partition_<feature>_<engine> tests. #
# #
# Note: There were some problems in history. #
# It looks like a table holds informations about the storage engine #
# It looks like a table holds information about the storage engine #
# for #
# "the whole table" -> in statement after column list before partitioning #
# a partition -> in statement after definition of partition #
Expand Down
2 changes: 1 addition & 1 deletion mysql-test/suite/parts/inc/partition_layout.inc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# inc/partition_layout.inc
#
# Print partitioning related informations about the table t1
# Print partitioning related information about the table t1
#

eval SHOW CREATE TABLE t1;
Expand Down
2 changes: 1 addition & 1 deletion mysql-test/suite/rpl/t/rpl_heartbeat_basic.test
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
--source include/master-slave.inc
#
# The test runs long and does not have any specifics to
# binlog_format. It is choosen therefore to run with MIXED mode
# binlog_format. It is chosen therefore to run with MIXED mode
# in order to not slow down much `make test'.
#
--source include/have_binlog_format_mixed.inc
Expand Down
2 changes: 1 addition & 1 deletion mysql-test/suite/sys_vars/r/sysvars_innodb.result
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ SESSION_VALUE NULL
DEFAULT_VALUE OFF
VARIABLE_SCOPE GLOBAL
VARIABLE_TYPE BOOLEAN
VARIABLE_COMMENT Do not allow to create table without primary key (off by default)
VARIABLE_COMMENT Do not allow creating a table without primary key (off by default)
NUMERIC_MIN_VALUE NULL
NUMERIC_MAX_VALUE NULL
NUMERIC_BLOCK_SIZE NULL
Expand Down
2 changes: 1 addition & 1 deletion mysys/my_mkdir.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ int my_mkdir(const char *dir, int Flags, myf MyFlags)
{
#endif
my_errno=errno;
DBUG_PRINT("error",("error %d when creating direcory %s",my_errno,dir));
DBUG_PRINT("error",("error %d when creating directory %s",my_errno,dir));
if (MyFlags & (MY_FFNF | MY_FAE | MY_WME))
my_error(EE_CANT_MKDIR, MYF(ME_BELL), dir, my_errno);
DBUG_RETURN(-1);
Expand Down
4 changes: 2 additions & 2 deletions scripts/mytop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ if ($has_is_processlist == 1)
if ($has_time_ms == 1)
{
## Check if the server has the STAGE column on the I_S.PROCESSLIST
## table (MariaDB) to retreive query completion informations
## table (MariaDB) to retreive query completion information
$has_progress = Execute("SELECT /*mytop*/ 1 FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_SCHEMA = 'information_schema' AND
TABLE_NAME = 'PROCESSLIST' AND
Expand Down Expand Up @@ -853,7 +853,7 @@ while (1)
}

## a - progress column toggle (the column is only displayed
## if progress informations are available from the processlist)
## if progress information are available from the processlist)

if ($key eq 'a')
{
Expand Down
4 changes: 2 additions & 2 deletions sql-common/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -2761,7 +2761,7 @@ CLI_MYSQL_REAL_CONNECT(MYSQL *mysql,const char *host, const char *user,
VIO_LOCALHOST | VIO_BUFFERED_READ);
if (!net->vio)
{
DBUG_PRINT("error",("Unknow protocol %d ", mysql->options.protocol));
DBUG_PRINT("error",("Unknown protocol %d ", mysql->options.protocol));
set_mysql_error(mysql, CR_CONN_UNKNOW_PROTOCOL, unknown_sqlstate);
closesocket(sock);
goto error;
Expand Down Expand Up @@ -2936,7 +2936,7 @@ CLI_MYSQL_REAL_CONNECT(MYSQL *mysql,const char *host, const char *user,
DBUG_PRINT("info", ("net->vio: %p", net->vio));
if (!net->vio)
{
DBUG_PRINT("error",("Unknow protocol %d ",mysql->options.protocol));
DBUG_PRINT("error",("Unknown protocol %d ",mysql->options.protocol));
set_mysql_error(mysql, CR_CONN_UNKNOW_PROTOCOL, unknown_sqlstate);
goto error;
}
Expand Down
2 changes: 1 addition & 1 deletion sql/field.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7854,7 +7854,7 @@ bool Field_varstring::send(Protocol *protocol)
}


#ifdef HAVE_valgrind
#ifdef HAVE_MEM_CHECK
void Field_varstring::mark_unused_memory_as_defined()
{
uint used_length= get_length();
Expand Down
4 changes: 2 additions & 2 deletions sql/field.h
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,7 @@ class Field: public Value_source
*/
virtual int store_from_statistical_minmax_field(Field *field, String *str);

#ifdef HAVE_valgrind
#ifdef HAVE_MEM_CHECK
/**
Mark unused memory in the field as defined. Mainly used to ensure
that if we write full field to disk (for example in
Expand Down Expand Up @@ -4161,7 +4161,7 @@ class Field_varstring :public Field_longstr {
}
int store(const char *to,size_t length,CHARSET_INFO *charset) override;
using Field_str::store;
#ifdef HAVE_valgrind
#ifdef HAVE_MEM_CHECK
void mark_unused_memory_as_defined() override;
#endif
double val_real() override;
Expand Down
2 changes: 1 addition & 1 deletion sql/log_event_server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5463,7 +5463,7 @@ int Rows_log_event::do_apply_event(rpl_group_info *rgi)
*/

{
DBUG_PRINT("debug", ("Checking compability of tables to lock - tables_to_lock: %p",
DBUG_PRINT("debug", ("Checking compatibility of tables to lock - tables_to_lock: %p",
rgi->tables_to_lock));

/**
Expand Down
Loading

0 comments on commit 356c149

Please sign in to comment.