Skip to content

Commit 4dfec8b

Browse files
committed
Merge 10.5 into 10.6
2 parents bad1440 + a42c80b commit 4dfec8b

File tree

86 files changed

+814
-662
lines changed

Some content is hidden

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

86 files changed

+814
-662
lines changed

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
Code status:
22
------------
33

4-
* [![Travis CI status](https://secure.travis-ci.org/MariaDB/server.png?branch=10.5)](https://travis-ci.org/MariaDB/server) travis-ci.org (10.5 branch)
54
* [![Appveyor CI status](https://ci.appveyor.com/api/projects/status/4u6pexmtpuf8jq66?svg=true)](https://ci.appveyor.com/project/rasmushoj/server) ci.appveyor.com
65

76
## MariaDB: The open source relational database
@@ -78,5 +77,3 @@ https://mariadb.org/about/security-policy/
7877

7978
The code for MariaDB, including all revision history, can be found at:
8079
https://github.com/MariaDB/server
81-
82-
***************************************************************************

client/mysqltest.cc

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* Copyright (c) 2000, 2013, Oracle and/or its affiliates.
2-
Copyright (c) 2009, 2020, MariaDB
2+
Copyright (c) 2009, 2021, MariaDB
33
44
This program is free software; you can redistribute it and/or modify
55
it under the terms of the GNU General Public License as published by
@@ -90,6 +90,8 @@ static my_bool non_blocking_api_enabled= 0;
9090

9191
#define QUERY_PRINT_ORIGINAL_FLAG 4
9292

93+
#define CLOSED_CONNECTION "-closed_connection-"
94+
9395
#ifndef HAVE_SETENV
9496
static int setenv(const char *name, const char *value, int overwrite);
9597
#endif
@@ -5583,11 +5585,13 @@ void do_close_connection(struct st_command *command)
55835585
my_free(con->name);
55845586

55855587
/*
5586-
When the connection is closed set name to "-closed_connection-"
5588+
When the connection is closed set name to CLOSED_CONNECTION
55875589
to make it possible to reuse the connection name.
55885590
*/
5589-
if (!(con->name = my_strdup(PSI_NOT_INSTRUMENTED, "-closed_connection-", MYF(MY_WME))))
5591+
if (!(con->name = my_strdup(PSI_NOT_INSTRUMENTED, CLOSED_CONNECTION,
5592+
MYF(MY_WME))))
55905593
die("Out of memory");
5594+
con->name_len= sizeof(CLOSED_CONNECTION)-1;
55915595

55925596
if (con == cur_con)
55935597
{
@@ -5990,7 +5994,7 @@ void do_connect(struct st_command *command)
59905994
con_slot= next_con;
59915995
else
59925996
{
5993-
if (!(con_slot= find_connection_by_name("-closed_connection-")))
5997+
if (!(con_slot= find_connection_by_name(CLOSED_CONNECTION)))
59945998
die("Connection limit exhausted, you can have max %d connections",
59955999
opt_max_connections);
59966000
my_free(con_slot->name);
@@ -8619,7 +8623,7 @@ void run_query(struct st_connection *cn, struct st_command *command, int flags)
86198623
log_file.flush();
86208624
dynstr_set(&ds_res, 0);
86218625

8622-
if (view_protocol_enabled &&
8626+
if (view_protocol_enabled && mysql &&
86238627
complete_query &&
86248628
match_re(&view_re, query))
86258629
{
@@ -8665,7 +8669,7 @@ void run_query(struct st_connection *cn, struct st_command *command, int flags)
86658669
dynstr_free(&query_str);
86668670
}
86678671

8668-
if (sp_protocol_enabled &&
8672+
if (sp_protocol_enabled && mysql &&
86698673
complete_query &&
86708674
match_re(&sp_re, query))
86718675
{
@@ -9048,7 +9052,7 @@ static void dump_backtrace(void)
90489052
struct st_connection *conn= cur_con;
90499053

90509054
fprintf(stderr, "read_command_buf (%p): ", read_command_buf);
9051-
my_safe_print_str(read_command_buf, sizeof(read_command_buf));
9055+
fprintf(stderr, "%.*s\n", (int)read_command_buflen, read_command_buf);
90529056
fputc('\n', stderr);
90539057

90549058
if (conn)

cmake/os/OpenBSD.cmake

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Copyright (C) 2012 Monty Program Ab, 2021 Brad Smith
2+
#
3+
# This program is free software; you can redistribute it and/or modify
4+
# it under the terms of the GNU General Public License as published by
5+
# the Free Software Foundation; version 2 of the License.
6+
#
7+
# This program is distributed in the hope that it will be useful,
8+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
9+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10+
# GNU General Public License for more details.
11+
#
12+
# You should have received a copy of the GNU General Public License
13+
# along with this program; if not, write to the Free Software
14+
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA
15+
16+
# This file includes OpenBSD specific options and quirks, related to system checks
17+
18+
# Find libexecinfo (library that contains backtrace_symbols etc)
19+
FIND_LIBRARY(EXECINFO NAMES execinfo)
20+
IF(EXECINFO)
21+
SET(LIBEXECINFO ${EXECINFO})
22+
ENDIF()

extra/innochecksum.cc

Lines changed: 4 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,10 @@ struct flock lk;
103103
struct innodb_page_type {
104104
int n_undo_state_active;
105105
int n_undo_state_cached;
106-
int n_undo_state_to_free;
107106
int n_undo_state_to_purge;
108107
int n_undo_state_prepared;
109108
int n_undo_state_other;
110-
int n_undo_insert;
111-
int n_undo_update;
112-
int n_undo_other;
109+
int n_undo;
113110
int n_fil_page_index;
114111
int n_fil_page_undo_log;
115112
int n_fil_page_inode;
@@ -876,21 +873,7 @@ parse_page(
876873
fprintf(file, "#::%llu\t\t|\t\tUndo log page\t\t\t|",
877874
cur_page_num);
878875
}
879-
if (undo_page_type == TRX_UNDO_INSERT) {
880-
page_type.n_undo_insert++;
881-
if (page_type_dump) {
882-
fprintf(file, "\t%s",
883-
"Insert Undo log page");
884-
}
885-
886-
} else if (undo_page_type == TRX_UNDO_UPDATE) {
887-
page_type.n_undo_update++;
888-
if (page_type_dump) {
889-
fprintf(file, "\t%s",
890-
"Update undo log page");
891-
}
892-
}
893-
876+
page_type.n_undo++;
894877
undo_page_type = mach_read_from_2(page + TRX_UNDO_SEG_HDR +
895878
TRX_UNDO_STATE);
896879
switch (undo_page_type) {
@@ -910,14 +893,6 @@ parse_page(
910893
}
911894
break;
912895

913-
case TRX_UNDO_TO_FREE:
914-
page_type.n_undo_state_to_free++;
915-
if (page_type_dump) {
916-
fprintf(file, ", %s", "Insert undo "
917-
"segment that can be freed");
918-
}
919-
break;
920-
921896
case TRX_UNDO_TO_PURGE:
922897
page_type.n_undo_state_to_purge++;
923898
if (page_type_dump) {
@@ -1141,15 +1116,11 @@ print_summary(
11411116

11421117
fprintf(fil_out, "\n===============================================\n");
11431118
fprintf(fil_out, "Additional information:\n");
1144-
fprintf(fil_out, "Undo page type: %d insert, %d update, %d other\n",
1145-
page_type.n_undo_insert,
1146-
page_type.n_undo_update,
1147-
page_type.n_undo_other);
1148-
fprintf(fil_out, "Undo page state: %d active, %d cached, %d to_free, %d"
1119+
fprintf(fil_out, "Undo page type: %d\n", page_type.n_undo);
1120+
fprintf(fil_out, "Undo page state: %d active, %d cached, %d"
11491121
" to_purge, %d prepared, %d other\n",
11501122
page_type.n_undo_state_active,
11511123
page_type.n_undo_state_cached,
1152-
page_type.n_undo_state_to_free,
11531124
page_type.n_undo_state_to_purge,
11541125
page_type.n_undo_state_prepared,
11551126
page_type.n_undo_state_other);

extra/wolfssl/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ IF(WOLFSSL_X86_64_BUILD)
134134
SET(USE_INTEL_SPEEDUP 1)
135135
LIST(APPEND WOLFCRYPT_SOURCES
136136
${WOLFCRYPT_SRCDIR}/aes_asm.S
137+
${WOLFCRYPT_SRCDIR}/aes_gcm_asm.S
137138
${WOLFCRYPT_SRCDIR}/sha512_asm.S
138139
${WOLFCRYPT_SRCDIR}/sha256_asm.S)
139140
ADD_DEFINITIONS(-maes -msse4.2 -mpclmul)

extra/wolfssl/user_settings.h.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@
1717
#define WC_RSA_BLINDING
1818
#define HAVE_TLS_EXTENSIONS
1919
#define HAVE_AES_ECB
20+
#define HAVE_AESGCM
2021
#define WOLFSSL_AES_COUNTER
2122
#define NO_WOLFSSL_STUB
2223
#define OPENSSL_ALL
23-
#undef WOLFSSL_ALLOW_TLSV10 /* see https://github.com/wolfSSL/wolfssl/issues/2960 */
24+
#define WOLFSSL_ALLOW_TLSV10
2425
#define NO_OLD_TIMEVAL_NAME
2526
/*
2627
FP_MAX_BITS is set high solely to satisfy ssl_8k_key.test

include/mysql/service_my_crypt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ extern "C" {
4545
/* The max key length of all supported algorithms */
4646
#define MY_AES_MAX_KEY_LENGTH 32
4747

48-
#define MY_AES_CTX_SIZE 640
48+
#define MY_AES_CTX_SIZE 656
4949

5050
enum my_aes_mode {
5151
MY_AES_ECB, MY_AES_CBC

mysql-test/main/connect-abstract.cnf

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11

22
!include include/default_my.cnf
33

4-
[mysqld.1]
5-
socket= @ENV.ABSTRACT_SOCKET
6-
74
# Using @OPT.port here for uniqueness
85
[ENV]
96
ABSTRACT_SOCKET= @mtr-test-abstract-socket-@OPT.port
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
connect con1,localhost,root,,test,,$ABSTRACT_SOCKET;
21
select 1;
32
1
43
1
5-
disconnect con1;

mysql-test/main/connect-abstract.test

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
--source include/linux.inc
22
--source include/not_embedded.inc
33

4+
let $restart_parameters=--socket=$ABSTRACT_SOCKET
5+
--source include/kill_mysqld.inc
6+
--source include/start_mysqld.inc
7+
48
connect(con1,localhost,root,,test,,$ABSTRACT_SOCKET);
59
select 1;
6-
disconnect con1;

0 commit comments

Comments
 (0)