Skip to content

Commit 7253cdf

Browse files
committed
Merge branch '10.10' into 10.11
2 parents 04aab82 + 63e3fc0 commit 7253cdf

File tree

1,449 files changed

+94637
-19301
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,449 files changed

+94637
-19301
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,8 @@ scripts/mariadb-setpermission
616616
sql/mariadbd
617617
sql/mariadb-tzinfo-to-sql
618618
storage/rocksdb/mariadb-ldb
619+
strings/ctype-uca1400data.h
620+
strings/uca-dump
619621
tests/mariadb-client-test
620622
versioninfo_dll.rc
621623
versioninfo_exe.rc

.gitlab-ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,10 @@ fedora-ninja:
118118
- mkdir builddir; cd builddir
119119
- cmake -DRPM=generic $CMAKE_FLAGS -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -G Ninja .. 2>&1 | tee -a ../build-$CI_JOB_NAME-$CI_COMMIT_REF_SLUG.log
120120
- ninja -t graph > ../dependencies.dot && dot -Tpng -o ../dependencies.png ../dependencies.dot
121-
- eatmydata ninja package --verbose 2>&1 | tee -a ../build-$CI_JOB_NAME-$CI_COMMIT_REF_SLUG.log
122-
# Ninja builds are not affected by bug https://jira.mariadb.org/browse/MDEV-25968
121+
- eatmydata ninja package -j 2 --verbose 2>&1 | tee -a ../build-$CI_JOB_NAME-$CI_COMMIT_REF_SLUG.log
122+
# @TODO: Unlike other builds, the Ninja builds using Gitlab.com runners don't get stuck, but they do get
123+
# stuck on runners with more processors, see https://jira.mariadb.org/browse/MDEV-25968.
124+
# Thus, use the same limitation on Ninja builds as well to ensure it never gets stuck due to this bug.
123125
- ninja test
124126
- *rpm_listfiles
125127
- mkdir ../rpm; mv *.rpm ../rpm

BUILD/SETUP.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ get_make_parallel_flag
125125

126126
# SSL library to use.--with-ssl will select our bundled yaSSL
127127
# implementation of SSL. --with-ssl=yes will first try system library
128-
# then the boundled one --with-ssl=system will use the system library.
128+
# then the bundled one --with-ssl=system will use the system library.
129129
# We use bundled by default as this is guaranteed to work with Galera
130130
SSL_LIBRARY=--with-ssl
131131

BUILD/compile-irix-mips64-mipspro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ path=`dirname $0`
5555
. "$path/autorun.sh"
5656

5757
# C options:
58-
# -apo - auto-parallize for multiprocessors (implies -mp)
58+
# -apo - auto-parallelize for multiprocessors (implies -mp)
5959
# -mp - generate multiprocessor code
6060
# These two common optimization options apparently use 'sproc' model of
6161
# threading, which is not compatible with PTHREADS: don't add them unless you

Docs/INSTALL-BINARY

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ However most documentation at www.mysql.com also applies.
4444
shell> groupadd mysql
4545
shell> useradd -g mysql mysql
4646
shell> cd /usr/local
47-
shell> gunzip < /path/to/mysql-VERSION-OS.tar.gz | tar xvf -
48-
shell> ln -s full-path-to-mysql-VERSION-OS mysql
47+
shell> gunzip < /path/to/mariadb-VERSION-OS.tar.gz | tar xvf -
48+
shell> ln -s full-path-to-mariadb-VERSION-OS mysql
4949
shell> cd mysql
5050
shell> chown -R mysql .
5151
shell> chgrp -R mysql .
@@ -88,16 +88,16 @@ shell> cd /usr/local
8888

8989
4. Unpack the distribution, which creates the installation
9090
directory. Then create a symbolic link to that directory:
91-
shell> gunzip < /path/to/mysql-VERSION-OS.tar.gz | tar xvf -
92-
shell> ln -s full-path-to-mysql-VERSION-OS mysql
93-
The tar command creates a directory named mysql-VERSION-OS.
91+
shell> gunzip < /path/to/mariadb-VERSION-OS.tar.gz | tar xvf -
92+
shell> ln -s full-path-to-mariadb-VERSION-OS mysql
93+
The tar command creates a directory named mariadb-VERSION-OS.
9494
The ln command makes a symbolic link to that directory. This
9595
lets you refer more easily to the installation directory as
9696
/usr/local/mysql.
9797
With GNU tar, no separate invocation of gunzip is necessary.
9898
You can replace the first line with the following alternative
9999
command to uncompress and extract the distribution:
100-
shell> tar zxvf /path/to/mysql-VERSION-OS.tar.gz
100+
shell> tar zxvf /path/to/mariadb-VERSION-OS.tar.gz
101101

102102
5. Change location into the installation directory:
103103
shell> cd mysql

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ test_script:
2525
- set PATH=C:\Strawberry\perl\bin;%PATH%;C:\Program Files (x86)\Windows Kits\10\Debuggers\x64
2626
- cd %APPVEYOR_BUILD_FOLDER%\_build\mysql-test
2727
- set /A parallel=4*%NUMBER_OF_PROCESSORS%
28-
- perl mysql-test-run.pl --force --max-test-fail=10 --retry=2 -parallel=%parallel% --testcase-timeout=4 --suite=main --skip-test-list=%APPVEYOR_BUILD_FOLDER%\win\appveyor_skip_tests.txt --mysqld=--loose-innodb-flush-log-at-trx-commit=2
28+
- perl mysql-test-run.pl --force --max-test-fail=10 --retry=2 --parallel=%parallel% --testcase-timeout=4 --suite=main --skip-test-list=%APPVEYOR_BUILD_FOLDER%\win\appveyor_skip_tests.txt --mysqld=--loose-innodb-flush-log-at-trx-commit=2
2929

3030
image: Visual Studio 2022

client/echo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
/*
1818
echo is a replacement for the "echo" command builtin to cmd.exe
19-
on Windows, to get a Unix eqvivalent behaviour when running commands
19+
on Windows, to get a Unix equivalent behaviour when running commands
2020
like:
2121
$> echo "hello" | mysql
2222

client/mysql.cc

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
Copyright (c) 2000, 2018, Oracle and/or its affiliates.
3-
Copyright (c) 2009, 2021, MariaDB Corporation.
3+
Copyright (c) 2009, 2022, MariaDB Corporation.
44
55
This program is free software; you can redistribute it and/or modify
66
it under the terms of the GNU General Public License as published by
@@ -42,7 +42,7 @@
4242
#include <violite.h>
4343
#include <my_sys.h>
4444
#include <source_revision.h>
45-
#if defined(USE_LIBEDIT_INTERFACE) && defined(HAVE_LOCALE_H)
45+
#if defined(HAVE_LOCALE_H)
4646
#include <locale.h>
4747
#endif
4848

@@ -1491,7 +1491,7 @@ static bool do_connect(MYSQL *mysql, const char *host, const char *user,
14911491
if (opt_secure_auth)
14921492
mysql_options(mysql, MYSQL_SECURE_AUTH, (char *) &opt_secure_auth);
14931493
#if defined(HAVE_OPENSSL) && !defined(EMBEDDED_LIBRARY)
1494-
if (opt_use_ssl)
1494+
if (opt_use_ssl && opt_protocol <= MYSQL_PROTOCOL_SOCKET)
14951495
{
14961496
mysql_ssl_set(mysql, opt_ssl_key, opt_ssl_cert, opt_ssl_ca,
14971497
opt_ssl_capath, opt_ssl_cipher);
@@ -2506,7 +2506,7 @@ static bool add_line(String &buffer, char *line, size_t line_length,
25062506
!(*in_string &&
25072507
(mysql.server_status & SERVER_STATUS_NO_BACKSLASH_ESCAPES)))
25082508
{
2509-
// Found possbile one character command like \c
2509+
// Found possible one character command like \c
25102510

25112511
/*
25122512
The null-terminating character (ASCII '\0') marks the end of user
@@ -2857,6 +2857,9 @@ static void initialize_readline ()
28572857
/* Allow conditional parsing of the ~/.inputrc file. */
28582858
rl_readline_name= (char *) "mysql";
28592859
rl_terminal_name= getenv("TERM");
2860+
#ifdef HAVE_SETLOCALE
2861+
setlocale(LC_ALL,"");
2862+
#endif
28602863

28612864
/* Tell the completer that we want a crack first. */
28622865
#if defined(USE_NEW_READLINE_INTERFACE)
@@ -2865,9 +2868,6 @@ static void initialize_readline ()
28652868

28662869
rl_add_defun("magic-space", (rl_command_func_t *)&fake_magic_space, -1);
28672870
#elif defined(USE_LIBEDIT_INTERFACE)
2868-
#ifdef HAVE_LOCALE_H
2869-
setlocale(LC_ALL,""); /* so as libedit use isprint */
2870-
#endif
28712871
rl_attempted_completion_function= (CPPFunction*)&new_mysql_completion;
28722872
rl_completion_entry_function= &no_completion;
28732873
rl_add_defun("magic-space", (Function*)&fake_magic_space, -1);
@@ -3791,7 +3791,6 @@ print_table_data(MYSQL_RES *result)
37913791
{
37923792
String separator(256);
37933793
MYSQL_ROW cur;
3794-
MYSQL_FIELD *field;
37953794
bool*num_flag;
37963795

37973796
num_flag=(bool*) my_alloca(sizeof(bool)*mysql_num_fields(result));
@@ -3803,7 +3802,7 @@ print_table_data(MYSQL_RES *result)
38033802
mysql_field_seek(result,0);
38043803
}
38053804
separator.copy("+",1,charset_info);
3806-
while ((field = mysql_fetch_field(result)))
3805+
while (MYSQL_FIELD *field= mysql_fetch_field(result))
38073806
{
38083807
uint length= column_names ? field->name_length : 0;
38093808
if (quick)
@@ -3825,7 +3824,7 @@ print_table_data(MYSQL_RES *result)
38253824
{
38263825
mysql_field_seek(result,0);
38273826
(void) tee_fputs("|", PAGER);
3828-
for (uint off=0; (field = mysql_fetch_field(result)) ; off++)
3827+
while (MYSQL_FIELD *field= mysql_fetch_field(result))
38293828
{
38303829
size_t name_length= (uint) strlen(field->name);
38313830
size_t numcells= charset_info->numcells(field->name,
@@ -3867,7 +3866,7 @@ print_table_data(MYSQL_RES *result)
38673866
data_length= (uint) lengths[off];
38683867
}
38693868

3870-
field= mysql_fetch_field(result);
3869+
MYSQL_FIELD *field= mysql_fetch_field(result);
38713870
field_max_length= field->max_length;
38723871

38733872
/*

client/mysql_plugin.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ static char *convert_path(const char *argument)
281281
282282
@param[in] path The Windows path to examine.
283283
284-
@returns string containing excaped quotes if spaces found in path
284+
@returns string containing escaped quotes if spaces found in path
285285
*/
286286
static char *add_quotes(const char *path)
287287
{

client/mysql_upgrade.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ static char upgrade_info_file[FN_REFLEN]= {0};
714714
Open or create mysql_upgrade_info file in servers data dir.
715715
716716
Take a lock to ensure there cannot be any other mysql_upgrades
717-
runninc concurrently
717+
running concurrently
718718
*/
719719

720720
const char *create_error_message=
@@ -775,7 +775,7 @@ static void open_mysql_upgrade_file()
775775
/**
776776
Place holder for versions that require a major upgrade
777777
778-
@return 0 upgrade has alredy been run on this version
778+
@return 0 upgrade has already been run on this version
779779
@return 1 upgrade has to be run
780780
781781
*/
@@ -799,7 +799,7 @@ static int faulty_server_versions(const char *version)
799799
file it's always better to report that the upgrade hasn't
800800
been performed.
801801
802-
@return 0 Upgrade has alredy been run on this version
802+
@return 0 Upgrade has already been run on this version
803803
@return > 0 Upgrade has to be run
804804
*/
805805

0 commit comments

Comments
 (0)