Skip to content

Commit 6aec875

Browse files
committed
Merge 10.5 into 10.6
2 parents 70a515d + c41c796 commit 6aec875

File tree

285 files changed

+2180
-1546
lines changed

Some content is hidden

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

285 files changed

+2180
-1546
lines changed

client/mysqlbinlog.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,8 @@ class Load_log_processor
314314
}
315315

316316
public:
317-
Load_log_processor() {}
318-
~Load_log_processor() {}
317+
Load_log_processor() = default;
318+
~Load_log_processor() = default;
319319

320320
int init()
321321
{

debian/autobake-deb.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,6 @@ fi
9797
case "${LSBNAME}"
9898
in
9999
# Debian
100-
stretch)
101-
# MDEV-16525 libzstd-dev-1.1.3 minimum version
102-
sed -e '/libzstd-dev/d' \
103-
-e 's/libcurl4/libcurl3/g' -i debian/control
104-
remove_rocksdb_tools
105-
disable_pmem
106-
;&
107100
buster)
108101
replace_uring_with_aio
109102
if [ ! "$architecture" = amd64 ]

extra/mariabackup/xtrabackup.cc

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1294,7 +1294,7 @@ struct my_option xb_client_options[]= {
12941294

12951295
{"rsync", OPT_RSYNC,
12961296
"Uses the rsync utility to optimize local file "
1297-
"transfers. When this option is specified, innobackupex uses rsync "
1297+
"transfers. When this option is specified, " XB_TOOL_NAME " uses rsync "
12981298
"to copy all non-InnoDB files instead of spawning a separate cp for "
12991299
"each file, which can be much faster for servers with a large number "
13001300
"of databases or tables. This option cannot be used together with "
@@ -1402,7 +1402,7 @@ struct my_option xb_client_options[]= {
14021402

14031403
{"ftwrl-wait-query-type", OPT_LOCK_WAIT_QUERY_TYPE,
14041404
"This option specifies which types of queries are allowed to complete "
1405-
"before innobackupex will issue the global lock. Default is all.",
1405+
"before " XB_TOOL_NAME " will issue the global lock. Default is all.",
14061406
(uchar *) &opt_lock_wait_query_type, (uchar *) &opt_lock_wait_query_type,
14071407
&query_type_typelib, GET_ENUM, REQUIRED_ARG, QUERY_TYPE_ALL, 0, 0, 0, 0,
14081408
0},
@@ -1422,26 +1422,26 @@ struct my_option xb_client_options[]= {
14221422
NULL, NULL, 0, GET_STR, OPT_ARG, 0, 0, 0, 0, 0, 0},
14231423

14241424
{"kill-long-queries-timeout", OPT_KILL_LONG_QUERIES_TIMEOUT,
1425-
"This option specifies the number of seconds innobackupex waits "
1425+
"This option specifies the number of seconds " XB_TOOL_NAME " waits "
14261426
"between starting FLUSH TABLES WITH READ LOCK and killing those "
14271427
"queries that block it. Default is 0 seconds, which means "
1428-
"innobackupex will not attempt to kill any queries.",
1428+
XB_TOOL_NAME " will not attempt to kill any queries.",
14291429
(uchar *) &opt_kill_long_queries_timeout,
14301430
(uchar *) &opt_kill_long_queries_timeout, 0, GET_UINT, REQUIRED_ARG, 0, 0,
14311431
0, 0, 0, 0},
14321432

14331433
{"ftwrl-wait-timeout", OPT_LOCK_WAIT_TIMEOUT,
1434-
"This option specifies time in seconds that innobackupex should wait "
1434+
"This option specifies time in seconds that " XB_TOOL_NAME " should wait "
14351435
"for queries that would block FTWRL before running it. If there are "
1436-
"still such queries when the timeout expires, innobackupex terminates "
1437-
"with an error. Default is 0, in which case innobackupex does not "
1436+
"still such queries when the timeout expires, " XB_TOOL_NAME " terminates "
1437+
"with an error. Default is 0, in which case " XB_TOOL_NAME " does not "
14381438
"wait for queries to complete and starts FTWRL immediately.",
14391439
(uchar *) &opt_lock_wait_timeout, (uchar *) &opt_lock_wait_timeout, 0,
14401440
GET_UINT, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
14411441

14421442
{"ftwrl-wait-threshold", OPT_LOCK_WAIT_THRESHOLD,
14431443
"This option specifies the query run time threshold which is used by "
1444-
"innobackupex to detect long-running queries with a non-zero value "
1444+
XB_TOOL_NAME " to detect long-running queries with a non-zero value "
14451445
"of --ftwrl-wait-timeout. FTWRL is not started until such "
14461446
"long-running queries exist. This option has no effect if "
14471447
"--ftwrl-wait-timeout is 0. Default value is 60 seconds.",
@@ -1919,6 +1919,17 @@ xb_get_one_option(const struct my_option *opt,
19191919
break;
19201920

19211921
case OPT_INNODB_FLUSH_METHOD:
1922+
#ifdef _WIN32
1923+
/* From: storage/innobase/handler/ha_innodb.cc:innodb_init_params */
1924+
switch (srv_file_flush_method) {
1925+
case SRV_ALL_O_DIRECT_FSYNC + 1 /* "async_unbuffered"="unbuffered" */:
1926+
srv_file_flush_method= SRV_ALL_O_DIRECT_FSYNC;
1927+
break;
1928+
case SRV_ALL_O_DIRECT_FSYNC + 2 /* "normal"="fsync" */:
1929+
srv_file_flush_method= SRV_FSYNC;
1930+
break;
1931+
}
1932+
#endif
19221933
ut_a(srv_file_flush_method
19231934
<= IF_WIN(SRV_ALL_O_DIRECT_FSYNC, SRV_O_DIRECT_NO_FSYNC));
19241935
ADD_PRINT_PARAM_OPT(innodb_flush_method_names[srv_file_flush_method]);
@@ -3076,7 +3087,9 @@ static bool xtrabackup_copy_logfile(bool last = false)
30763087

30773088
ut_ad(start_lsn == log_sys.log.scanned_lsn);
30783089

3079-
msg(">> log scanned up to (" LSN_PF ")", start_lsn);
3090+
if (verbose) {
3091+
msg(">> log scanned up to (" LSN_PF ")", start_lsn);
3092+
}
30803093

30813094
/* update global variable*/
30823095
pthread_mutex_lock(&backup_mutex);

extra/mariabackup/xtrabackup.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA
2727
#include "changed_page_bitmap.h"
2828
#include <set>
2929

30+
#define XB_TOOL_NAME "mariadb-backup"
31+
3032
struct xb_delta_info_t
3133
{
3234
xb_delta_info_t(ulint page_size, ulint zip_size, ulint space_id)

extra/wolfssl/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ IF(MSVC_INTEL)
1212
SET(WOLFSSL_X86_64_BUILD 1)
1313
SET(HAVE_INTEL_RDSEED 1)
1414
SET(HAVE_INTEL_RDRAND 1)
15+
ELSEIF(CMAKE_ASM_COMPILER_ID MATCHES "Clang" AND CMAKE_VERSION VERSION_LESS 3.16)
16+
17+
# WolfSSL 5.5.4 bug workaround below does not work, due to some CMake bug
1518
ELSEIF(CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64|amd64")
1619
SET(WOLFSSL_X86_64_BUILD 1)
1720
IF(CMAKE_C_COMPILER_ID MATCHES GNU AND CMAKE_C_COMPILER_VERSION VERSION_LESS 4.9)

include/ilist.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,11 @@
2727
// Derive your class from this struct to insert to a linked list.
2828
template <class Tag= void> struct ilist_node
2929
{
30-
ilist_node() noexcept
3130
#ifndef DBUG_OFF
32-
: next(NULL), prev(NULL)
31+
ilist_node() noexcept : next(NULL), prev(NULL) {}
32+
#else
33+
ilist_node() = default;
3334
#endif
34-
{
35-
}
3635

3736
ilist_node(ilist_node *next, ilist_node *prev) noexcept
3837
: next(next), prev(prev)

include/my_atomic_wrapper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ template <typename Type> class Atomic_relaxed
3939
Atomic_relaxed(const Atomic_relaxed<Type> &rhs)
4040
{ m.store(rhs, std::memory_order_relaxed); }
4141
Atomic_relaxed(Type val) : m(val) {}
42-
Atomic_relaxed() {}
42+
Atomic_relaxed() = default;
4343

4444
Type load(std::memory_order o= std::memory_order_relaxed) const
4545
{ return m.load(o); }

include/my_counter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ template <typename Type> class Atomic_counter
3131
Atomic_counter(const Atomic_counter<Type> &rhs)
3232
{ m_counter.store(rhs, std::memory_order_relaxed); }
3333
Atomic_counter(Type val): m_counter(val) {}
34-
Atomic_counter() {}
34+
Atomic_counter() = default;
3535

3636
Type operator++(int) { return add(1); }
3737
Type operator--(int) { return sub(1); }

include/span.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ template <class ElementType> class span
8181

8282
span(const span &other) : data_(other.data_), size_(other.size_) {}
8383

84-
~span(){};
84+
~span() = default;
8585

8686
span &operator=(const span &other)
8787
{
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
CREATE OR REPLACE TABLE case_folding AS SELECT 0 AS code, SPACE(32) AS c LIMIT 0;
2+
SHOW CREATE TABLE case_folding;
3+
# Uncode code points that have a variable length case mapping in utf8
4+
# (e.g. LOWER('2-byte-character') -> '3-byte-character'
5+
INSERT INTO case_folding (code) VALUES
6+
(0x23A),
7+
(0x23E),
8+
(0x23F),
9+
(0x240),
10+
(0x250),
11+
(0x251),
12+
(0x252),
13+
(0x26B),
14+
(0x271),
15+
(0x27D);
16+
UPDATE case_folding SET c=CHAR(code USING ucs2);
17+
SELECT HEX(code), HEX(LOWER(c)), HEX(UPPER(c)), c FROM case_folding;
18+
DROP TABLE case_folding;

0 commit comments

Comments
 (0)