summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2021-03-26 11:50:32 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2021-03-26 11:50:32 +0200
commit356c149603285086d964c8a51107be97b981c15c (patch)
tree932c4199fcd51bcda3052d6fbbfba7877a385330
parente9e1890162c2f75e399229f08dd9924d55d9655b (diff)
parent2e67b9f665875928605880661fc5aa1a15175f53 (diff)
downloadmariadb-git-356c149603285086d964c8a51107be97b981c15c.tar.gz
Merge 10.5 into 10.6
-rw-r--r--include/my_valgrind.h2
-rw-r--r--man/aria_chk.12
-rw-r--r--man/aria_read_log.12
-rw-r--r--mysql-test/include/index_merge1.inc2
-rw-r--r--mysql-test/include/ps_conv.inc16
-rw-r--r--mysql-test/main/partition.test2
-rw-r--r--mysql-test/main/ps_1general.test2
-rw-r--r--mysql-test/main/sp-error.result2
-rw-r--r--mysql-test/main/sp-error.test2
-rw-r--r--mysql-test/suite/funcs_1/r/is_engines_federated.result2
-rw-r--r--mysql-test/suite/innodb/r/innodb-wl5522-debug.result1
-rw-r--r--mysql-test/suite/innodb/r/innodb_bug34300.result2
-rw-r--r--mysql-test/suite/innodb/r/instant_alter_charset.result2
-rw-r--r--mysql-test/suite/innodb/t/innodb-alter.test6
-rw-r--r--mysql-test/suite/innodb/t/innodb-wl5522-debug.test1
-rw-r--r--mysql-test/suite/innodb/t/innodb_bug34300.test2
-rw-r--r--mysql-test/suite/innodb/t/instant_alter_charset.test2
-rw-r--r--mysql-test/suite/innodb_zip/r/wl5522_debug_zip.result6
-rw-r--r--mysql-test/suite/innodb_zip/t/wl5522_debug_zip.test6
-rw-r--r--mysql-test/suite/parts/inc/partition.pre4
-rw-r--r--mysql-test/suite/parts/inc/partition_engine.inc2
-rw-r--r--mysql-test/suite/parts/inc/partition_layout.inc2
-rw-r--r--mysql-test/suite/rpl/t/rpl_heartbeat_basic.test2
-rw-r--r--mysql-test/suite/sys_vars/r/sysvars_innodb.result2
-rw-r--r--mysys/my_mkdir.c2
-rw-r--r--scripts/mytop.sh4
-rw-r--r--sql-common/client.c4
-rw-r--r--sql/field.cc2
-rw-r--r--sql/field.h4
-rw-r--r--sql/log_event_server.cc2
-rw-r--r--sql/multi_range_read.cc16
-rw-r--r--sql/mysqld.cc2
-rw-r--r--sql/opt_subselect.cc2
-rw-r--r--sql/rpl_rli.h2
-rw-r--r--sql/sql_acl.cc2
-rw-r--r--sql/sql_cache.cc12
-rw-r--r--sql/sql_class.cc2
-rw-r--r--sql/sql_partition.cc2
-rw-r--r--sql/sql_prepare.cc2
-rw-r--r--sql/sql_repl.cc2
-rw-r--r--sql/sql_select.cc8
-rw-r--r--sql/sql_show.cc4
-rw-r--r--sql/sql_signal.h4
-rw-r--r--sql/table.cc2
-rw-r--r--sql/tztime.cc2
-rw-r--r--sql/udf_example.c4
-rw-r--r--storage/connect/filter.cpp2
-rw-r--r--storage/connect/ioapi.h2
-rw-r--r--storage/connect/myconn.cpp2
-rw-r--r--storage/federated/ha_federated.cc2
-rw-r--r--storage/federatedx/ha_federatedx.cc3
-rw-r--r--storage/heap/ChangeLog2
-rw-r--r--storage/innobase/btr/btr0cur.cc2
-rw-r--r--storage/innobase/dict/dict0crea.cc4
-rw-r--r--storage/innobase/dict/dict0load.cc80
-rw-r--r--storage/innobase/fil/fil0fil.cc2
-rw-r--r--storage/innobase/handler/ha_innodb.cc2
-rw-r--r--storage/innobase/include/dict0crea.h2
-rw-r--r--storage/innobase/include/dict0dict.h8
-rw-r--r--storage/innobase/include/fil0fil.h2
-rw-r--r--storage/innobase/include/srv0mon.h6
-rw-r--r--storage/innobase/page/page0cur.cc8
-rw-r--r--storage/innobase/row/row0import.cc25
-rw-r--r--storage/innobase/row/row0purge.cc16
-rw-r--r--storage/innobase/row/row0upd.cc32
-rw-r--r--storage/maria/aria_chk.c6
-rw-r--r--storage/maria/aria_read_log.c2
-rw-r--r--storage/maria/ha_maria.cc4
-rw-r--r--storage/maria/ma_backup.c2
-rw-r--r--storage/maria/ma_check.c2
-rw-r--r--storage/myisam/mi_open.c2
-rw-r--r--storage/myisam/myisamchk.c2
-rw-r--r--storage/rocksdb/mysql-test/rocksdb/include/index_merge1.inc2
-rw-r--r--tests/mysql_client_test.c2
74 files changed, 151 insertions, 235 deletions
diff --git a/include/my_valgrind.h b/include/my_valgrind.h
index daea5266a28..260521d4d4b 100644
--- a/include/my_valgrind.h
+++ b/include/my_valgrind.h
@@ -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)
@@ -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)
diff --git a/man/aria_chk.1 b/man/aria_chk.1
index 1d08d78b964..435dac75d70 100644
--- a/man/aria_chk.1
+++ b/man/aria_chk.1
@@ -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
diff --git a/man/aria_read_log.1 b/man/aria_read_log.1
index 4570c2ceee9..db42162c48f 100644
--- a/man/aria_read_log.1
+++ b/man/aria_read_log.1
@@ -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
diff --git a/mysql-test/include/index_merge1.inc b/mysql-test/include/index_merge1.inc
index 5934539061a..a1366af2c28 100644
--- a/mysql-test/include/index_merge1.inc
+++ b/mysql-test/include/index_merge1.inc
@@ -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,
diff --git a/mysql-test/include/ps_conv.inc b/mysql-test/include/ps_conv.inc
index d31f41ef39d..fd69741773f 100644
--- a/mysql-test/include/ps_conv.inc
+++ b/mysql-test/include/ps_conv.inc
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -243,7 +243,7 @@ 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
@@ -251,7 +251,7 @@ execute full_info ;
# 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
diff --git a/mysql-test/main/partition.test b/mysql-test/main/partition.test
index 81752982959..5d5dafdb206 100644
--- a/mysql-test/main/partition.test
+++ b/mysql-test/main/partition.test
@@ -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)
diff --git a/mysql-test/main/ps_1general.test b/mysql-test/main/ps_1general.test
index 0df1b3cabe9..47db79cb6c6 100644
--- a/mysql-test/main/ps_1general.test
+++ b/mysql-test/main/ps_1general.test
@@ -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 ;
diff --git a/mysql-test/main/sp-error.result b/mysql-test/main/sp-error.result
index 55777da3ee8..f64735f8006 100644
--- a/mysql-test/main/sp-error.result
+++ b/mysql-test/main/sp-error.result
@@ -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()
diff --git a/mysql-test/main/sp-error.test b/mysql-test/main/sp-error.test
index 4eb1a00caa4..d2af9834823 100644
--- a/mysql-test/main/sp-error.test
+++ b/mysql-test/main/sp-error.test
@@ -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
diff --git a/mysql-test/suite/funcs_1/r/is_engines_federated.result b/mysql-test/suite/funcs_1/r/is_engines_federated.result
index 20926458ed0..d9da64c7f7d 100644
--- a/mysql-test/suite/funcs_1/r/is_engines_federated.result
+++ b/mysql-test/suite/funcs_1/r/is_engines_federated.result
@@ -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
diff --git a/mysql-test/suite/innodb/r/innodb-wl5522-debug.result b/mysql-test/suite/innodb/r/innodb-wl5522-debug.result
index 8e255e18bec..1030fbd0502 100644
--- a/mysql-test/suite/innodb/r/innodb-wl5522-debug.result
+++ b/mysql-test/suite/innodb/r/innodb-wl5522-debug.result
@@ -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;
diff --git a/mysql-test/suite/innodb/r/innodb_bug34300.result b/mysql-test/suite/innodb/r/innodb_bug34300.result
index b168c7782bb..96dd8d0ea85 100644
--- a/mysql-test/suite/innodb/r/innodb_bug34300.result
+++ b/mysql-test/suite/innodb/r/innodb_bug34300.result
@@ -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,,;
diff --git a/mysql-test/suite/innodb/r/instant_alter_charset.result b/mysql-test/suite/innodb/r/instant_alter_charset.result
index 6b60c79b558..76d02df789e 100644
--- a/mysql-test/suite/innodb/r/instant_alter_charset.result
+++ b/mysql-test/suite/innodb/r/instant_alter_charset.result
@@ -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');
diff --git a/mysql-test/suite/innodb/t/innodb-alter.test b/mysql-test/suite/innodb/t/innodb-alter.test
index 70174a98d77..b3418c6e39b 100644
--- a/mysql-test/suite/innodb/t/innodb-alter.test
+++ b/mysql-test/suite/innodb/t/innodb-alter.test
@@ -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;
diff --git a/mysql-test/suite/innodb/t/innodb-wl5522-debug.test b/mysql-test/suite/innodb/t/innodb-wl5522-debug.test
index 07c2adeb550..a22afc041b0 100644
--- a/mysql-test/suite/innodb/t/innodb-wl5522-debug.test
+++ b/mysql-test/suite/innodb/t/innodb-wl5522-debug.test
@@ -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`;
diff --git a/mysql-test/suite/innodb/t/innodb_bug34300.test b/mysql-test/suite/innodb/t/innodb_bug34300.test
index 8c73af13bc1..3ca03164b5b 100644
--- a/mysql-test/suite/innodb/t/innodb_bug34300.test
+++ b/mysql-test/suite/innodb/t/innodb_bug34300.test
@@ -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
diff --git a/mysql-test/suite/innodb/t/instant_alter_charset.test b/mysql-test/suite/innodb/t/instant_alter_charset.test
index a5ddd49830c..eb0f90a4ce4 100644
--- a/mysql-test/suite/innodb/t/instant_alter_charset.test
+++ b/mysql-test/suite/innodb/t/instant_alter_charset.test
@@ -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;
diff --git a/mysql-test/suite/innodb_zip/r/wl5522_debug_zip.result b/mysql-test/suite/innodb_zip/r/wl5522_debug_zip.result
index 15227e9d6d3..fccee685caf 100644
--- a/mysql-test/suite/innodb_zip/r/wl5522_debug_zip.result
+++ b/mysql-test/suite/innodb_zip/r/wl5522_debug_zip.result
@@ -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
diff --git a/mysql-test/suite/innodb_zip/t/wl5522_debug_zip.test b/mysql-test/suite/innodb_zip/t/wl5522_debug_zip.test
index 9529045785f..282469f0a0c 100644
--- a/mysql-test/suite/innodb_zip/t/wl5522_debug_zip.test
+++ b/mysql-test/suite/innodb_zip/t/wl5522_debug_zip.test
@@ -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`;
diff --git a/mysql-test/suite/parts/inc/partition.pre b/mysql-test/suite/parts/inc/partition.pre
index 0fae04dddd4..fba909687a0 100644
--- a/mysql-test/suite/parts/inc/partition.pre
+++ b/mysql-test/suite/parts/inc/partition.pre
@@ -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 .
@@ -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
diff --git a/mysql-test/suite/parts/inc/partition_engine.inc b/mysql-test/suite/parts/inc/partition_engine.inc
index 947957d29a9..c964557e69f 100644
--- a/mysql-test/suite/parts/inc/partition_engine.inc
+++ b/mysql-test/suite/parts/inc/partition_engine.inc
@@ -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 #
diff --git a/mysql-test/suite/parts/inc/partition_layout.inc b/mysql-test/suite/parts/inc/partition_layout.inc
index 12fbfb9a46a..c1ab14f974d 100644
--- a/mysql-test/suite/parts/inc/partition_layout.inc
+++ b/mysql-test/suite/parts/inc/partition_layout.inc
@@ -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;
diff --git a/mysql-test/suite/rpl/t/rpl_heartbeat_basic.test b/mysql-test/suite/rpl/t/rpl_heartbeat_basic.test
index 4c8d3a1fedb..f12c5921ba2 100644
--- a/mysql-test/suite/rpl/t/rpl_heartbeat_basic.test
+++ b/mysql-test/suite/rpl/t/rpl_heartbeat_basic.test
@@ -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
diff --git a/mysql-test/suite/sys_vars/r/sysvars_innodb.result b/mysql-test/suite/sys_vars/r/sysvars_innodb.result
index 41e6b06fa7d..94c670b16bf 100644
--- a/mysql-test/suite/sys_vars/r/sysvars_innodb.result
+++ b/mysql-test/suite/sys_vars/r/sysvars_innodb.result
@@ -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
diff --git a/mysys/my_mkdir.c b/mysys/my_mkdir.c
index c162a3d7854..f9067710331 100644
--- a/mysys/my_mkdir.c
+++ b/mysys/my_mkdir.c
@@ -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);
diff --git a/scripts/mytop.sh b/scripts/mytop.sh
index f4e6dffb3b5..7d40c44c2d6 100644
--- a/scripts/mytop.sh
+++ b/scripts/mytop.sh
@@ -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
@@ -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')
{
diff --git a/sql-common/client.c b/sql-common/client.c
index 95118fa1859..22ebd6dae00 100644
--- a/sql-common/client.c
+++ b/sql-common/client.c
@@ -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;
@@ -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;
}
diff --git a/sql/field.cc b/sql/field.cc
index 52074417046..5ea43df1a7e 100644
--- a/sql/field.cc
+++ b/sql/field.cc
@@ -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();
diff --git a/sql/field.h b/sql/field.h
index 4a4f7cee2a5..8eacf75844a 100644
--- a/sql/field.h
+++ b/sql/field.h
@@ -998,7 +998,7 @@ public:
*/
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
@@ -4161,7 +4161,7 @@ public:
}
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;
diff --git a/sql/log_event_server.cc b/sql/log_event_server.cc
index 91e789cd639..bbb824ef8ee 100644
--- a/sql/log_event_server.cc
+++ b/sql/log_event_server.cc
@@ -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));
/**
diff --git a/sql/multi_range_read.cc b/sql/multi_range_read.cc
index ec039962be9..c7c3079f28f 100644
--- a/sql/multi_range_read.cc
+++ b/sql/multi_range_read.cc
@@ -1679,15 +1679,15 @@ ha_rows DsMrr_impl::dsmrr_info(uint keyno, uint n_ranges, uint rows,
if ((*flags & HA_MRR_USE_DEFAULT_IMPL) ||
choose_mrr_impl(keyno, rows, flags, bufsz, cost))
{
- /* Default implementation is choosen */
- DBUG_PRINT("info", ("Default MRR implementation choosen"));
+ /* Default implementation is chosen */
+ DBUG_PRINT("info", ("Default MRR implementation chosen"));
*flags= def_flags;
*bufsz= def_bufsz;
}
else
{
/* *flags and *bufsz were set by choose_mrr_impl */
- DBUG_PRINT("info", ("DS-MRR implementation choosen"));
+ DBUG_PRINT("info", ("DS-MRR implementation chosen"));
}
return 0;
}
@@ -1724,14 +1724,14 @@ ha_rows DsMrr_impl::dsmrr_info_const(uint keyno, RANGE_SEQ_IF *seq,
if ((*flags & HA_MRR_USE_DEFAULT_IMPL) ||
choose_mrr_impl(keyno, rows, flags, bufsz, cost))
{
- DBUG_PRINT("info", ("Default MRR implementation choosen"));
+ DBUG_PRINT("info", ("Default MRR implementation chosen"));
*flags= def_flags;
*bufsz= def_bufsz;
}
else
{
/* *flags and *bufsz were set by choose_mrr_impl */
- DBUG_PRINT("info", ("DS-MRR implementation choosen"));
+ DBUG_PRINT("info", ("DS-MRR implementation chosen"));
}
return rows;
}
@@ -1799,12 +1799,12 @@ bool DsMrr_impl::check_cpk_scan(THD *thd, TABLE_SHARE *share, uint keyno,
@param keyno Index number
@param rows E(full rows to be retrieved)
@param flags IN MRR flags provided by the MRR user
- OUT If DS-MRR is choosen, flags of DS-MRR implementation
+ OUT If DS-MRR is chosen, flags of DS-MRR implementation
else the value is not modified
- @param bufsz IN If DS-MRR is choosen, buffer use of DS-MRR implementation
+ @param bufsz IN If DS-MRR is chosen, buffer use of DS-MRR implementation
else the value is not modified
@param cost IN Cost of default MRR implementation
- OUT If DS-MRR is choosen, cost of DS-MRR scan
+ OUT If DS-MRR is chosen, cost of DS-MRR scan
else the value is not modified
@retval TRUE Default MRR implementation should be used
diff --git a/sql/mysqld.cc b/sql/mysqld.cc
index 4f522d96a9f..adb6ff82662 100644
--- a/sql/mysqld.cc
+++ b/sql/mysqld.cc
@@ -7391,7 +7391,7 @@ static void usage(void)
It's also needed on some exotic platforms where global variables are
not set to 0 when a program starts.
- We don't need to set variables refered to in my_long_options
+ We don't need to set variables referred to in my_long_options
as these are initialized by my_getopt.
*/
diff --git a/sql/opt_subselect.cc b/sql/opt_subselect.cc
index 96a35e10bf2..4ba48c565d5 100644
--- a/sql/opt_subselect.cc
+++ b/sql/opt_subselect.cc
@@ -2901,7 +2901,7 @@ void advance_sj_state(JOIN *join, table_map remaining_tables, uint idx,
{
DBUG_ASSERT(pos->sj_strategy != sj_strategy);
/*
- If the strategy choosen first time or
+ If the strategy chosen first time or
the strategy replace strategy which was used to exectly the same
tables
*/
diff --git a/sql/rpl_rli.h b/sql/rpl_rli.h
index e3b59aa615c..85e31ef8187 100644
--- a/sql/rpl_rli.h
+++ b/sql/rpl_rli.h
@@ -274,7 +274,7 @@ public:
Needed for problems when slave stops and we want to restart it
skipping one or more events in the master log that have caused
errors, and have been manually applied by DBA already.
- Must be ulong as it's refered to from set_var.cc
+ Must be ulong as it's referred to from set_var.cc
*/
volatile ulonglong slave_skip_counter;
ulonglong max_relay_log_size;
diff --git a/sql/sql_acl.cc b/sql/sql_acl.cc
index e75f75f8fa8..1cf4d4af49a 100644
--- a/sql/sql_acl.cc
+++ b/sql/sql_acl.cc
@@ -5023,7 +5023,7 @@ acl_update_proxy_user(ACL_PROXY_USER *new_value, bool is_revoke)
{
if (is_revoke)
{
- DBUG_PRINT("info", ("delting ACL_PROXY_USER"));
+ DBUG_PRINT("info", ("deleting ACL_PROXY_USER"));
delete_dynamic_element(&acl_proxy_users, i);
}
else
diff --git a/sql/sql_cache.cc b/sql/sql_cache.cc
index 57070b038ca..b81dea78bcf 100644
--- a/sql/sql_cache.cc
+++ b/sql/sql_cache.cc
@@ -5128,7 +5128,7 @@ my_bool Query_cache::in_blocks(Query_cache_block * point)
if (block->pprev->pnext != block)
{
DBUG_PRINT("error",
- ("block %p in physical list is incorrect linked, prev block %p refered as next to %p (check from %p)",
+ ("block %p in physical list is incorrect linked, prev block %p referred as next to %p (check from %p)",
block, block->pprev,
block->pprev->pnext,
point));
@@ -5156,7 +5156,7 @@ err1:
if (block->pnext->pprev != block)
{
DBUG_PRINT("error",
- ("block %p in physicel list is incorrect linked, next block %p refered as prev to %p (check from %p)",
+ ("block %p in physicel list is incorrect linked, next block %p referred as prev to %p (check from %p)",
block, block->pnext,
block->pnext->pprev,
point));
@@ -5185,7 +5185,7 @@ my_bool Query_cache::in_list(Query_cache_block * root,
if (block->prev->next != block)
{
DBUG_PRINT("error",
- ("block %p in list '%s' %p is incorrect linked, prev block %p refered as next to %p (check from %p)",
+ ("block %p in list '%s' %p is incorrect linked, prev block %p referred as next to %p (check from %p)",
block, name, root, block->prev,
block->prev->next,
point));
@@ -5214,7 +5214,7 @@ err1:
if (block->next->prev != block)
{
DBUG_PRINT("error",
- ("block %p in list '%s' %p is incorrect linked, next block %p refered as prev to %p (check from %p)",
+ ("block %p in list '%s' %p is incorrect linked, next block %p referred as prev to %p (check from %p)",
block, name, root, block->next,
block->next->prev,
point));
@@ -5256,7 +5256,7 @@ my_bool Query_cache::in_table_list(Query_cache_block_table * root,
if (table->prev->next != table)
{
DBUG_PRINT("error",
- ("table %p(%p) in list '%s' %p(%p) is incorrect linked, prev table %p(%p) refered as next to %p(%p) (check from %p(%p))",
+ ("table %p(%p) in list '%s' %p(%p) is incorrect linked, prev table %p(%p) referred as next to %p(%p) (check from %p(%p))",
table, table->block(), name,
root, root->block(),
table->prev, table->prev->block(),
@@ -5291,7 +5291,7 @@ err1:
if (table->next->prev != table)
{
DBUG_PRINT("error",
- ("table %p(%p) in list '%s' %p(%p) is incorrect linked, next table %p(%p) refered as prev to %p(%p) (check from %p(%p))",
+ ("table %p(%p) in list '%s' %p(%p) is incorrect linked, next table %p(%p) referred as prev to %p(%p) (check from %p(%p))",
table, table->block(),
name, root, root->block(),
table->next, table->next->block(),
diff --git a/sql/sql_class.cc b/sql/sql_class.cc
index 4992bca5aa9..77b0b04ca21 100644
--- a/sql/sql_class.cc
+++ b/sql/sql_class.cc
@@ -3616,7 +3616,7 @@ int select_max_min_finder_subselect::send_data(List<Item> &items)
break;
case ROW_RESULT:
case TIME_RESULT:
- // This case should never be choosen
+ // This case should never be chosen
DBUG_ASSERT(0);
op= 0;
}
diff --git a/sql/sql_partition.cc b/sql/sql_partition.cc
index 3d33731da5c..86ba393fb7b 100644
--- a/sql/sql_partition.cc
+++ b/sql/sql_partition.cc
@@ -41,7 +41,7 @@
which is often referred to as column lists in the code variables. This
enables a user to specify a set of columns and their concatenated value
as the partition value. By comparing the concatenation of these values
- the proper partition can be choosen.
+ the proper partition can be chosen.
*/
/* Some general useful functions */
diff --git a/sql/sql_prepare.cc b/sql/sql_prepare.cc
index 5d0378886db..bba182c1b9c 100644
--- a/sql/sql_prepare.cc
+++ b/sql/sql_prepare.cc
@@ -3423,7 +3423,7 @@ static void mysql_stmt_execute_common(THD *thd,
Set thd->query_string with the stmt_id so the
audit plugin gets the meaningful notification.
*/
- if (alloc_query(thd, llbuf, strlen(llbuf)))
+ if (alloc_query(thd, llbuf, sizeof(llbuf)))
thd->set_query(0, 0);
my_error(ER_UNKNOWN_STMT_HANDLER, MYF(0), static_cast<int>(sizeof(llbuf)),
llstr(stmt_id, llbuf), "mysqld_stmt_execute");
diff --git a/sql/sql_repl.cc b/sql/sql_repl.cc
index 010ea794254..084259d863d 100644
--- a/sql/sql_repl.cc
+++ b/sql/sql_repl.cc
@@ -1958,7 +1958,7 @@ send_event_to_slave(binlog_send_info *info, Log_event_type event_type,
{
info->error= ER_MASTER_FATAL_ERROR_READING_BINLOG;
return "Failed to replace GTID event with backwards-compatible event: "
- "currupt event.";
+ "corrupt event.";
}
if (!need_dummy)
return NULL;
diff --git a/sql/sql_select.cc b/sql/sql_select.cc
index 93f5d3591ed..155c68545fc 100644
--- a/sql/sql_select.cc
+++ b/sql/sql_select.cc
@@ -7727,7 +7727,7 @@ best_access_path(JOIN *join,
Try re-using E(#rows) from "range" optimizer:
We can do so if "range" optimizer used the same intervals as
in (**). The intervals used by range optimizer may be not
- available at this point (as "range" access might have choosen to
+ available at this point (as "range" access might have chosen to
create quick select over another index), so we can't compare
them to (**). We'll make indirect judgements instead.
The sufficient conditions for re-use are:
@@ -11035,7 +11035,7 @@ inline void add_cond_and_fix(THD *thd, Item **e1, Item *e2)
Description of the optimization:
- We look through equalities choosen to perform ref/eq_ref access,
+ We look through equalities chosen to perform ref/eq_ref access,
pick equalities that have form "tbl.part_of_key = othertbl.field"
(where othertbl is a non-const table and othertbl.field may be NULL)
and add them to conditions on correspoding tables (othertbl in this
@@ -17966,7 +17966,7 @@ Field *Item_sum::create_tmp_field(MEM_ROOT *root, bool group, TABLE *table)
new_field= tmp_table_field_from_field_type(root, table);
break;
case ROW_RESULT:
- // This case should never be choosen
+ // This case should never be chosen
DBUG_ASSERT(0);
new_field= 0;
break;
@@ -25139,7 +25139,7 @@ void calc_group_buffer(TMP_TABLE_PARAM *param, ORDER *group)
break;
}
default:
- /* This case should never be choosen */
+ /* This case should never be chosen */
DBUG_ASSERT(0);
my_error(ER_OUT_OF_RESOURCES, MYF(ME_FATAL));
}
diff --git a/sql/sql_show.cc b/sql/sql_show.cc
index a5c9b505ec1..b1cc696e9fe 100644
--- a/sql/sql_show.cc
+++ b/sql/sql_show.cc
@@ -1924,7 +1924,7 @@ static void add_table_options(THD *thd, TABLE *table,
packet->append_ulonglong(share->stats_sample_pages);
}
- /* We use CHECKSUM, instead of TABLE_CHECKSUM, for backward compability */
+ /* We use CHECKSUM, instead of TABLE_CHECKSUM, for backward compatibility */
if (create_info.options & HA_OPTION_CHECKSUM)
packet->append(STRING_WITH_LEN(" CHECKSUM=1"));
if (create_info.page_checksum != HA_CHOICE_UNDEF)
@@ -5507,7 +5507,7 @@ static int get_schema_tables_record(THD *thd, TABLE_LIST *tables,
str.qs_append(share->stats_sample_pages);
}
- /* We use CHECKSUM, instead of TABLE_CHECKSUM, for backward compability */
+ /* We use CHECKSUM, instead of TABLE_CHECKSUM, for backward compatibility */
if (share->db_create_options & HA_OPTION_CHECKSUM)
str.qs_append(STRING_WITH_LEN(" checksum=1"));
diff --git a/sql/sql_signal.h b/sql/sql_signal.h
index bf42cdb5f07..433cee21d58 100644
--- a/sql/sql_signal.h
+++ b/sql/sql_signal.h
@@ -77,7 +77,7 @@ public:
/**
Constructor, used to represent a SIGNAL statement.
@param cond the SQL condition to signal (required).
- @param set the collection of signal informations to signal.
+ @param set the collection of signal information to signal.
*/
Sql_cmd_signal(const sp_condition_value *cond,
const Set_signal_information& set)
@@ -104,7 +104,7 @@ public:
/**
Constructor, used to represent a RESIGNAL statement.
@param cond the SQL condition to resignal (optional, may be NULL).
- @param set the collection of signal informations to resignal.
+ @param set the collection of signal information to resignal.
*/
Sql_cmd_resignal(const sp_condition_value *cond,
const Set_signal_information& set)
diff --git a/sql/table.cc b/sql/table.cc
index 04ff4e5b357..36f3bbeb70e 100644
--- a/sql/table.cc
+++ b/sql/table.cc
@@ -2338,7 +2338,7 @@ int TABLE_SHARE::init_from_binary_frm_image(THD *thd, bool write,
}
else
{
- DBUG_PRINT("info", ("Setting system versioning informations"));
+ DBUG_PRINT("info", ("Setting system versioning information"));
if (init_period_from_extra2(&vers, extra2.system_period.str,
extra2.system_period.str + extra2.system_period.length))
goto err;
diff --git a/sql/tztime.cc b/sql/tztime.cc
index 5a8d6915cec..23c015e4a5e 100644
--- a/sql/tztime.cc
+++ b/sql/tztime.cc
@@ -2564,7 +2564,7 @@ scan_tz_dir(char * name_end, uint symlink_recursion_level, uint verbose)
/*
This is a normal case and not critical. only print warning if
- verbose mode is choosen.
+ verbose mode is chosen.
*/
if (verbose > 0)
{
diff --git a/sql/udf_example.c b/sql/udf_example.c
index e4757de880d..cb3f3ad1c98 100644
--- a/sql/udf_example.c
+++ b/sql/udf_example.c
@@ -972,7 +972,7 @@ avgcost_deinit( UDF_INIT* initid )
}
-/* This is only for MySQL 4.0 compability */
+/* This is only for MySQL 4.0 compatibility */
void
avgcost_reset(UDF_INIT* initid, UDF_ARGS* args, char* is_null, char* message)
{
@@ -1119,7 +1119,7 @@ avg2_deinit( UDF_INIT* initid )
}
-/* This is only for MySQL 4.0 compability */
+/* This is only for MySQL 4.0 compatibility */
void
avg2_reset(UDF_INIT* initid, UDF_ARGS* args, char* is_null, char* message)
{
diff --git a/storage/connect/filter.cpp b/storage/connect/filter.cpp
index e2361ddccb4..5dea66fff0d 100644
--- a/storage/connect/filter.cpp
+++ b/storage/connect/filter.cpp
@@ -856,7 +856,7 @@ PFIL FILTER::LinkFilter(PGLOBAL g, PFIL fp2)
/***********************************************************************/
/* Checks whether filter contains reference to a previous table that */
-/* is not logically joined to the currently openned table, or whether */
+/* is not logically joined to the currently opened table, or whether */
/* it is a Sub-Select filter. In any case, local is set to FALSE. */
/* Note: This function is now applied to de-linearized filters. */
/***********************************************************************/
diff --git a/storage/connect/ioapi.h b/storage/connect/ioapi.h
index 4fa73002053..e2148c56bac 100644
--- a/storage/connect/ioapi.h
+++ b/storage/connect/ioapi.h
@@ -82,7 +82,7 @@
#include "mz64conf.h"
#endif
-/* a type choosen by DEFINE */
+/* a type chosen by DEFINE */
#ifdef HAVE_64BIT_INT_CUSTOM
typedef 64BIT_INT_CUSTOM_TYPE ZPOS64_T;
#else
diff --git a/storage/connect/myconn.cpp b/storage/connect/myconn.cpp
index abb865cc61f..2e270368916 100644
--- a/storage/connect/myconn.cpp
+++ b/storage/connect/myconn.cpp
@@ -120,7 +120,7 @@ static MYSQL_RES *connect_use_result(MYSQL *mysql)
/************************************************************************/
/* MyColumns: constructs the result blocks containing all columns */
/* of a MySQL table or view. */
-/* info = TRUE to get catalog column informations. */
+/* info = TRUE to get catalog column information. */
/************************************************************************/
PQRYRES MyColumns(PGLOBAL g, THD *thd, const char *host, const char *db,
const char *user, const char *pwd,
diff --git a/storage/federated/ha_federated.cc b/storage/federated/ha_federated.cc
index db933b14b89..64a80808d6f 100644
--- a/storage/federated/ha_federated.cc
+++ b/storage/federated/ha_federated.cc
@@ -3394,7 +3394,7 @@ maria_declare_plugin(federated)
&federated_storage_engine,
"FEDERATED",
"Patrick Galbraith and Brian Aker, MySQL AB",
- "Allows to access tables on other MariaDB servers",
+ "Allows accessing tables on other MariaDB servers",
PLUGIN_LICENSE_GPL,
federated_db_init, /* Plugin Init */
federated_done, /* Plugin Deinit */
diff --git a/storage/federatedx/ha_federatedx.cc b/storage/federatedx/ha_federatedx.cc
index 477cc87cd6c..5be37098dfc 100644
--- a/storage/federatedx/ha_federatedx.cc
+++ b/storage/federatedx/ha_federatedx.cc
@@ -3715,7 +3715,7 @@ maria_declare_plugin(federatedx)
&federatedx_storage_engine,
"FEDERATED",
"Patrick Galbraith",
- "Allows to access tables on other MariaDB servers, supports transactions and more",
+ "Allows one to access tables on other MariaDB servers, supports transactions and more",
PLUGIN_LICENSE_GPL,
federatedx_db_init, /* Plugin Init */
federatedx_done, /* Plugin Deinit */
@@ -3726,4 +3726,3 @@ maria_declare_plugin(federatedx)
MariaDB_PLUGIN_MATURITY_STABLE /* maturity */
}
maria_declare_plugin_end;
-
diff --git a/storage/heap/ChangeLog b/storage/heap/ChangeLog
index 9d3ced84cc9..b6bd0e435bc 100644
--- a/storage/heap/ChangeLog
+++ b/storage/heap/ChangeLog
@@ -1,7 +1,7 @@
Sun Sep 6 10:56:59 1992 Michael Widenius (monty@bitch)
* Added functions for first,next,last,prev and clear of database-heap
- * Added optional index to rsame for compability.
+ * Added optional index to rsame for compatibility.
Fri Aug 14 14:34:35 1992 Michael Widenius (monty@bitch)
diff --git a/storage/innobase/btr/btr0cur.cc b/storage/innobase/btr/btr0cur.cc
index 2a2edc814ec..0710aa640a0 100644
--- a/storage/innobase/btr/btr0cur.cc
+++ b/storage/innobase/btr/btr0cur.cc
@@ -2140,7 +2140,7 @@ need_opposite_intention:
/* If the first or the last record of the page
or the same key value to the first record or last record,
- the another page might be choosen when BTR_CONT_MODIFY_TREE.
+ the another page might be chosen when BTR_CONT_MODIFY_TREE.
So, the parent page should not released to avoiding deadlock
with blocking the another search with the same key value. */
if (!detected_same_key_root
diff --git a/storage/innobase/dict/dict0crea.cc b/storage/innobase/dict/dict0crea.cc
index 563a37181fd..9d5daef6332 100644
--- a/storage/innobase/dict/dict0crea.cc
+++ b/storage/innobase/dict/dict0crea.cc
@@ -910,7 +910,7 @@ void dict_drop_index_tree(btr_pcur_t* pcur, trx_t* trx, mtr_t* mtr)
byte* ptr;
ulint len;
- dict_sys.assert_locked();
+ ut_d(if (trx) dict_sys.assert_locked());
ut_a(!dict_table_is_comp(dict_sys.sys_indexes));
ptr = rec_get_nth_field_old(rec, DICT_FLD__SYS_INDEXES__PAGE_NO, &len);
@@ -936,7 +936,7 @@ void dict_drop_index_tree(btr_pcur_t* pcur, trx_t* trx, mtr_t* mtr)
const uint32_t space_id = mach_read_from_4(ptr);
ut_ad(space_id < SRV_TMP_SPACE_ID);
- if (space_id != TRX_SYS_SPACE
+ if (space_id != TRX_SYS_SPACE && trx
&& trx_get_dict_operation(trx) == TRX_DICT_OP_TABLE) {
/* We are about to delete the entire .ibd file;
do not bother to free pages inside it. */
diff --git a/storage/innobase/dict/dict0load.cc b/storage/innobase/dict/dict0load.cc
index 5e1a9deec4f..fea22112178 100644
--- a/storage/innobase/dict/dict0load.cc
+++ b/storage/innobase/dict/dict0load.cc
@@ -1,7 +1,7 @@
/*****************************************************************************
Copyright (c) 1996, 2016, Oracle and/or its affiliates. All Rights Reserved.
-Copyright (c) 2016, 2020, MariaDB Corporation.
+Copyright (c) 2016, 2021, MariaDB Corporation.
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
@@ -3304,81 +3304,3 @@ load_next_index:
DBUG_RETURN(DB_SUCCESS);
}
-
-/***********************************************************************//**
-Loads a table id based on the index id.
-@return true if found */
-static
-bool
-dict_load_table_id_on_index_id(
-/*===========================*/
- index_id_t index_id, /*!< in: index id */
- table_id_t* table_id) /*!< out: table id */
-{
- /* check hard coded indexes */
- switch(index_id) {
- case DICT_TABLES_ID:
- case DICT_COLUMNS_ID:
- case DICT_INDEXES_ID:
- case DICT_FIELDS_ID:
- *table_id = index_id;
- return true;
- case DICT_TABLE_IDS_ID:
- /* The following is a secondary index on SYS_TABLES */
- *table_id = DICT_TABLES_ID;
- return true;
- }
-
- bool found = false;
- mtr_t mtr;
-
- dict_sys.assert_locked();
-
- /* NOTE that the operation of this function is protected by
- the dictionary mutex, and therefore no deadlocks can occur
- with other dictionary operations. */
-
- mtr_start(&mtr);
-
- btr_pcur_t pcur;
- const rec_t* rec = dict_startscan_system(&pcur, &mtr, SYS_INDEXES);
-
- while (rec) {
- ulint len;
- const byte* field = rec_get_nth_field_old(
- rec, DICT_FLD__SYS_INDEXES__ID, &len);
- ut_ad(len == 8);
-
- /* Check if the index id is the one searched for */
- if (index_id == mach_read_from_8(field)) {
- found = true;
- /* Now we get the table id */
- const byte* field = rec_get_nth_field_old(
- rec,
- DICT_FLD__SYS_INDEXES__TABLE_ID,
- &len);
- *table_id = mach_read_from_8(field);
- break;
- }
- mtr_commit(&mtr);
- mtr_start(&mtr);
- rec = dict_getnext_system(&pcur, &mtr);
- }
-
- btr_pcur_close(&pcur);
- mtr_commit(&mtr);
-
- return(found);
-}
-
-dict_table_t* dict_table_open_on_index_id(index_id_t index_id)
-{
- table_id_t table_id;
- dict_table_t * table = NULL;
- if (dict_load_table_id_on_index_id(index_id, &table_id)) {
- table = dict_table_open_on_id(table_id, true,
- DICT_TABLE_OP_LOAD_TABLESPACE);
- }
-
- return table;
-}
diff --git a/storage/innobase/fil/fil0fil.cc b/storage/innobase/fil/fil0fil.cc
index b70cf983c95..be5cd0b9475 100644
--- a/storage/innobase/fil/fil0fil.cc
+++ b/storage/innobase/fil/fil0fil.cc
@@ -1888,7 +1888,7 @@ fil_space_t *fil_truncate_prepare(ulint space_id)
/*******************************************************************//**
Allocates and builds a file name from a path, a table or tablespace name
and a suffix. The string must be freed by caller with ut_free().
-@param[in] path NULL or the direcory path or the full path and filename.
+@param[in] path NULL or the directory path or the full path and filename.
@param[in] name NULL if path is full, or Table/Tablespace name
@param[in] suffix NULL or the file extention to use.
@param[in] trim_name true if the last name on the path should be trimmed.
diff --git a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc
index 4a4f78e4c8c..a21353f20c2 100644
--- a/storage/innobase/handler/ha_innodb.cc
+++ b/storage/innobase/handler/ha_innodb.cc
@@ -19152,7 +19152,7 @@ static MYSQL_SYSVAR_UINT(simulate_comp_failures, srv_simulate_comp_failures,
static MYSQL_SYSVAR_BOOL(force_primary_key,
srv_force_primary_key,
PLUGIN_VAR_OPCMDARG,
- "Do not allow to create table without primary key (off by default)",
+ "Do not allow creating a table without primary key (off by default)",
NULL, NULL, FALSE);
static const char *page_compression_algorithms[]= { "none", "zlib", "lz4", "lzo", "lzma", "bzip2", "snappy", 0 };
diff --git a/storage/innobase/include/dict0crea.h b/storage/innobase/include/dict0crea.h
index 72108614f14..9f8e5442e52 100644
--- a/storage/innobase/include/dict0crea.h
+++ b/storage/innobase/include/dict0crea.h
@@ -101,7 +101,7 @@ dict_create_index_tree(
@param[in,out] trx dictionary transaction
@param[in,out] mtr mini-transaction */
void dict_drop_index_tree(btr_pcur_t* pcur, trx_t* trx, mtr_t* mtr)
- MY_ATTRIBUTE((nonnull));
+ MY_ATTRIBUTE((nonnull(1,3)));
/***************************************************************//**
Creates an index tree for the index if it is not a member of a cluster.
diff --git a/storage/innobase/include/dict0dict.h b/storage/innobase/include/dict0dict.h
index 024a8652a12..02ed956b039 100644
--- a/storage/innobase/include/dict0dict.h
+++ b/storage/innobase/include/dict0dict.h
@@ -2,7 +2,7 @@
Copyright (c) 1996, 2018, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2012, Facebook Inc.
-Copyright (c) 2013, 2020, MariaDB Corporation.
+Copyright (c) 2013, 2021, MariaDB Corporation.
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
@@ -153,12 +153,6 @@ dict_table_open_on_id(table_id_t table_id, bool dict_locked,
MDL_ticket **mdl= nullptr)
MY_ATTRIBUTE((warn_unused_result));
-/**********************************************************************//**
-Returns a table object based on table id.
-@return table, NULL if does not exist */
-dict_table_t* dict_table_open_on_index_id(index_id_t index_id)
- __attribute__((warn_unused_result));
-
/** Decrements the count of open handles of a table.
@param[in,out] table table
@param[in] dict_locked data dictionary locked
diff --git a/storage/innobase/include/fil0fil.h b/storage/innobase/include/fil0fil.h
index c9539aeff0c..d0be38f0468 100644
--- a/storage/innobase/include/fil0fil.h
+++ b/storage/innobase/include/fil0fil.h
@@ -1591,7 +1591,7 @@ void fil_close_tablespace(ulint id);
/*******************************************************************//**
Allocates and builds a file name from a path, a table or tablespace name
and a suffix. The string must be freed by caller with ut_free().
-@param[in] path NULL or the direcory path or the full path and filename.
+@param[in] path NULL or the directory path or the full path and filename.
@param[in] name NULL if path is full, or Table/Tablespace name
@param[in] suffix NULL or the file extention to use.
@return own: file name */
diff --git a/storage/innobase/include/srv0mon.h b/storage/innobase/include/srv0mon.h
index ae5aa6af7b0..569898cdd78 100644
--- a/storage/innobase/include/srv0mon.h
+++ b/storage/innobase/include/srv0mon.h
@@ -620,14 +620,14 @@ Use MONITOR_DEC if appropriate mutex protection exists.
} \
}
-#ifdef HAVE_valgrind
+#ifdef HAVE_MEM_CHECK
# define MONITOR_CHECK_DEFINED(value) do { \
mon_type_t m = value; \
MEM_CHECK_DEFINED(&m, sizeof m); \
} while (0)
-#else /* HAVE_valgrind */
+#else /* HAVE_MEM_CHECK */
# define MONITOR_CHECK_DEFINED(value) (void) 0
-#endif /* HAVE_valgrind */
+#endif /* HAVE_MEM_CHECK */
#define MONITOR_INC_VALUE(monitor, value) \
MONITOR_CHECK_DEFINED(value); \
diff --git a/storage/innobase/page/page0cur.cc b/storage/innobase/page/page0cur.cc
index cb4293f998a..5e751010f44 100644
--- a/storage/innobase/page/page0cur.cc
+++ b/storage/innobase/page/page0cur.cc
@@ -1311,7 +1311,7 @@ page_cur_insert_rec_low(
/* 1. Get the size of the physical record in the page */
const ulint rec_size= rec_offs_size(offsets);
-#ifdef HAVE_valgrind
+#ifdef HAVE_MEM_CHECK
{
const void *rec_start= rec - rec_offs_extra_size(offsets);
ulint extra_size= rec_offs_extra_size(offsets) -
@@ -1323,7 +1323,7 @@ page_cur_insert_rec_low(
/* The variable-length header must be valid. */
MEM_CHECK_DEFINED(rec_start, extra_size);
}
-#endif /* HAVE_valgrind */
+#endif /* HAVE_MEM_CHECK */
/* 2. Try to find suitable space from page memory management */
bool reuse= false;
@@ -1717,7 +1717,7 @@ page_cur_insert_rec_zip(
/* 1. Get the size of the physical record in the page */
const ulint rec_size= rec_offs_size(offsets);
-#ifdef HAVE_valgrind
+#ifdef HAVE_MEM_CHECK
{
const void *rec_start= rec - rec_offs_extra_size(offsets);
ulint extra_size= rec_offs_extra_size(offsets) - REC_N_NEW_EXTRA_BYTES;
@@ -1726,7 +1726,7 @@ page_cur_insert_rec_zip(
/* The variable-length header must be valid. */
MEM_CHECK_DEFINED(rec_start, extra_size);
}
-#endif /* HAVE_valgrind */
+#endif /* HAVE_MEM_CHECK */
const bool reorg_before_insert= page_has_garbage(cursor->block->frame) &&
rec_size > page_get_max_insert_size(cursor->block->frame, 1) &&
rec_size <= page_get_max_insert_size_after_reorganize(cursor->block->frame,
diff --git a/storage/innobase/row/row0import.cc b/storage/innobase/row/row0import.cc
index fef12a5faa4..c1bf50e3a24 100644
--- a/storage/innobase/row/row0import.cc
+++ b/storage/innobase/row/row0import.cc
@@ -1880,38 +1880,33 @@ dberr_t
PageConverter::update_index_page(
buf_block_t* block) UNIV_NOTHROW
{
- index_id_t id;
- buf_frame_t* page = block->frame;
const page_id_t page_id(block->page.id());
if (is_free(page_id.page_no())) {
return(DB_SUCCESS);
- } else if ((id = btr_page_get_index_id(page)) != m_index->m_id) {
+ }
+
+ buf_frame_t* page = block->frame;
+ const index_id_t id = btr_page_get_index_id(page);
- row_index_t* index = find_index(id);
+ if (id != m_index->m_id) {
+ row_index_t* index = find_index(id);
if (UNIV_UNLIKELY(!index)) {
- ib::error() << "Page for tablespace " << m_space
- << " is index page with id " << id
- << " but that index is not found from"
- << " configuration file. Current index name "
- << m_index->m_name << " and id " << m_index->m_id;
- m_index = 0;
- return(DB_CORRUPTION);
+ ib::warn() << "Unknown index id " << id
+ << " on page " << page_id.page_no();
+ return DB_SUCCESS;
}
- /* Update current index */
m_index = index;
}
/* If the .cfg file is missing and there is an index mismatch
then ignore the error. */
- if (m_cfg->m_missing && (m_index == 0 || m_index->m_srv_index == 0)) {
+ if (m_cfg->m_missing && !m_index->m_srv_index) {
return(DB_SUCCESS);
}
-
-
if (m_index && page_id.page_no() == m_index->m_page_no) {
byte *b = FIL_PAGE_DATA + PAGE_BTR_SEG_LEAF + FSEG_HDR_SPACE
+ page;
diff --git a/storage/innobase/row/row0purge.cc b/storage/innobase/row/row0purge.cc
index 3b8af6ecd53..0fdc1763eb4 100644
--- a/storage/innobase/row/row0purge.cc
+++ b/storage/innobase/row/row0purge.cc
@@ -28,6 +28,7 @@ Created 3/14/1997 Heikki Tuuri
#include "btr0cur.h"
#include "fsp0fsp.h"
#include "mach0data.h"
+#include "dict0crea.h"
#include "dict0stats.h"
#include "trx0rseg.h"
#include "trx0trx.h"
@@ -117,6 +118,21 @@ row_purge_remove_clust_if_poss_low(
return true;
}
+ if (node->table->id == DICT_INDEXES_ID) {
+ /* If this is a record of the SYS_INDEXES table, then
+ we have to free the file segments of the index tree
+ associated with the index */
+ dict_drop_index_tree(&node->pcur, nullptr, &mtr);
+ mtr.commit();
+ mtr.start();
+ index->set_modified(mtr);
+
+ if (!row_purge_reposition_pcur(mode, node, &mtr)) {
+ mtr.commit();
+ return true;
+ }
+ }
+
rec_t* rec = btr_pcur_get_rec(&node->pcur);
rec_offs offsets_[REC_OFFS_NORMAL_SIZE];
rec_offs_init(offsets_);
diff --git a/storage/innobase/row/row0upd.cc b/storage/innobase/row/row0upd.cc
index 336c3d29342..5c91f4a2d1f 100644
--- a/storage/innobase/row/row0upd.cc
+++ b/storage/innobase/row/row0upd.cc
@@ -2764,7 +2764,6 @@ row_upd_clust_step(
{
dict_index_t* index;
btr_pcur_t* pcur;
- ibool success;
dberr_t err;
mtr_t mtr;
rec_t* rec;
@@ -2826,9 +2825,7 @@ row_upd_clust_step(
mode = BTR_MODIFY_LEAF;
}
- success = btr_pcur_restore_position(mode, pcur, &mtr);
-
- if (!success) {
+ if (!btr_pcur_restore_position(mode, pcur, &mtr)) {
err = DB_RECORD_NOT_FOUND;
mtr_commit(&mtr);
@@ -2836,33 +2833,6 @@ row_upd_clust_step(
return(err);
}
- /* If this is a row in SYS_INDEXES table of the data dictionary,
- then we have to free the file segments of the index tree associated
- with the index */
-
- if (node->is_delete == PLAIN_DELETE
- && node->table->id == DICT_INDEXES_ID) {
-
- ut_ad(!dict_index_is_online_ddl(index));
-
- dict_drop_index_tree(pcur, trx, &mtr);
-
- mtr.commit();
-
- mtr.start();
- index->set_modified(mtr);
-
- success = btr_pcur_restore_position(BTR_MODIFY_LEAF, pcur,
- &mtr);
- if (!success) {
- err = DB_ERROR;
-
- mtr.commit();
-
- return(err);
- }
- }
-
rec = btr_pcur_get_rec(pcur);
offsets = rec_get_offsets(rec, index, offsets_, true,
ULINT_UNDEFINED, &heap);
diff --git a/storage/maria/aria_chk.c b/storage/maria/aria_chk.c
index 0955d467bcb..71142e6ed20 100644
--- a/storage/maria/aria_chk.c
+++ b/storage/maria/aria_chk.c
@@ -586,7 +586,7 @@ Recover (repair)/ options (When using '--recover' or '--safe-recover'):\n\
-q, --quick Faster repair by not modifying the data file.\n\
One can give a second '-q' to force aria_chk to\n\
modify the original datafile in case of duplicate keys.\n\
- NOTE: Tables where the data file is currupted can't be\n\
+ NOTE: Tables where the data file is corrupted can't be\n\
fixed with this option.\n\
-u, --unpack Unpack file packed with ariapack.\n\
");
@@ -1359,7 +1359,7 @@ static int maria_chk(HA_CHECK *param, char *filename)
error= maria_zerofill(param, info, filename);
if (!error)
{
- DBUG_PRINT("info", ("Reseting crashed state"));
+ DBUG_PRINT("info", ("Resetting crashed state"));
share->state.changed&= ~(STATE_CHANGED | STATE_CRASHED_FLAGS |
STATE_IN_REPAIR);
}
@@ -1423,7 +1423,7 @@ static int maria_chk(HA_CHECK *param, char *filename)
share->state.open_count != 0)
&& (param->testflag & T_UPDATE_STATE))
info->update|=HA_STATE_CHANGED | HA_STATE_ROW_CHANGED;
- DBUG_PRINT("info", ("Reseting crashed state"));
+ DBUG_PRINT("info", ("Resetting crashed state"));
share->state.changed&= ~(STATE_CHANGED | STATE_CRASHED_FLAGS |
STATE_IN_REPAIR);
}
diff --git a/storage/maria/aria_read_log.c b/storage/maria/aria_read_log.c
index a96fd254e0e..51bfa879702 100644
--- a/storage/maria/aria_read_log.c
+++ b/storage/maria/aria_read_log.c
@@ -269,7 +269,7 @@ static struct my_option my_long_options[] =
&opt_silent, &opt_silent, 0,
GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
{"tables-to-redo", 'T',
- "List of tables sepearated with , that we should apply REDO on. Use this if you only want to recover some tables",
+ "List of tables separated with , that we should apply REDO on. Use this if you only want to recover some tables",
0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
{"tmpdir", 't', "Path for temporary files. Multiple paths can be specified, "
"separated by "
diff --git a/storage/maria/ha_maria.cc b/storage/maria/ha_maria.cc
index ea42763871e..c92f5f9eb5c 100644
--- a/storage/maria/ha_maria.cc
+++ b/storage/maria/ha_maria.cc
@@ -1345,7 +1345,7 @@ int ha_maria::check(THD * thd, HA_CHECK_OPT * check_opt)
{
file->update |= HA_STATE_CHANGED | HA_STATE_ROW_CHANGED;
mysql_mutex_lock(&share->intern_lock);
- DBUG_PRINT("info", ("Reseting crashed state"));
+ DBUG_PRINT("info", ("Resetting crashed state"));
share->state.changed&= ~(STATE_CHANGED | STATE_CRASHED_FLAGS |
STATE_IN_REPAIR);
if (!(table->db_stat & HA_READ_ONLY))
@@ -1722,7 +1722,7 @@ int ha_maria::repair(THD *thd, HA_CHECK *param, bool do_optimize)
{
if ((share->state.changed & STATE_CHANGED) || maria_is_crashed(file))
{
- DBUG_PRINT("info", ("Reseting crashed state"));
+ DBUG_PRINT("info", ("Resetting crashed state"));
share->state.changed&= ~(STATE_CHANGED | STATE_CRASHED_FLAGS |
STATE_IN_REPAIR | STATE_MOVED);
file->update |= HA_STATE_CHANGED | HA_STATE_ROW_CHANGED;
diff --git a/storage/maria/ma_backup.c b/storage/maria/ma_backup.c
index 1ce6d43a9de..0384dfb4cc5 100644
--- a/storage/maria/ma_backup.c
+++ b/storage/maria/ma_backup.c
@@ -21,7 +21,7 @@
#include <aria_backup.h>
/**
- @brief Get capabilites for an Aria table
+ @brief Get capabilities for an Aria table
@param kfile key file (.MAI)
@param cap Capabilities are stored here
diff --git a/storage/maria/ma_check.c b/storage/maria/ma_check.c
index d63e7bee3c1..c6aa0662a9f 100644
--- a/storage/maria/ma_check.c
+++ b/storage/maria/ma_check.c
@@ -6428,7 +6428,7 @@ void _ma_update_auto_increment_key(HA_CHECK *param, MARIA_HA *info,
keypart_k=c_k for arbitrary constants c_1 ... c_k)
= {assuming that values have uniform distribution and index contains all
- tuples from the domain (or that {c_1, ..., c_k} tuple is choosen from
+ tuples from the domain (or that {c_1, ..., c_k} tuple is chosen from
index tuples}
= #tuples-in-the-index / #distinct-tuples-in-the-index.
diff --git a/storage/myisam/mi_open.c b/storage/myisam/mi_open.c
index cca2afa0b03..3db424ea997 100644
--- a/storage/myisam/mi_open.c
+++ b/storage/myisam/mi_open.c
@@ -180,7 +180,7 @@ MI_INFO *mi_open(const char *name, int mode, uint open_flags)
if ((share->options & HA_OPTION_RELIES_ON_SQL_LAYER) &&
! (open_flags & HA_OPEN_FROM_SQL_LAYER))
{
- DBUG_PRINT("error", ("table cannot be openned from non-sql layer"));
+ DBUG_PRINT("error", ("table cannot be opened from non-sql layer"));
my_errno= HA_ERR_UNSUPPORTED;
goto err;
}
diff --git a/storage/myisam/myisamchk.c b/storage/myisam/myisamchk.c
index b18f23dacb8..4344ce11420 100644
--- a/storage/myisam/myisamchk.c
+++ b/storage/myisam/myisamchk.c
@@ -429,7 +429,7 @@ static void usage(void)
-q, --quick Faster repair by not modifying the data file.\n\
One can give a second '-q' to force myisamchk to\n\
modify the original datafile in case of duplicate keys.\n\
- NOTE: Tables where the data file is currupted can't be\n\
+ NOTE: Tables where the data file is corrupted can't be\n\
fixed with this option.\n\
-u, --unpack Unpack file packed with myisampack.\n\
");
diff --git a/storage/rocksdb/mysql-test/rocksdb/include/index_merge1.inc b/storage/rocksdb/mysql-test/rocksdb/include/index_merge1.inc
index b5cf7bff763..c1462e7817a 100644
--- a/storage/rocksdb/mysql-test/rocksdb/include/index_merge1.inc
+++ b/storage/rocksdb/mysql-test/rocksdb/include/index_merge1.inc
@@ -676,7 +676,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 t0 (a int);
insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c
index 0043786d477..0a2d16599ae 100644
--- a/tests/mysql_client_test.c
+++ b/tests/mysql_client_test.c
@@ -18883,7 +18883,7 @@ static void test_bug58036()
if (!mysql_change_user(conn, opt_user, opt_password, NULL))
{
if (!opt_silent)
- printf("mysql_change_user() succedded, error expected!");
+ printf("mysql_change_user() succeeded, error expected!");
mysql_close(conn);
DIE("");
}