Skip to content

Commit 0d55914

Browse files
committed
Merge 10.8 into 10.9
2 parents 37a46e2 + b12cd88 commit 0d55914

File tree

327 files changed

+2896
-1771
lines changed

Some content is hidden

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

327 files changed

+2896
-1771
lines changed

client/mysqlbinlog.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,8 @@ class Load_log_processor
326326
}
327327

328328
public:
329-
Load_log_processor() {}
330-
~Load_log_processor() {}
329+
Load_log_processor() = default;
330+
~Load_log_processor() = default;
331331

332332
int init()
333333
{

dbug/dbug.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
#include <m_string.h>
8787
#include <errno.h>
8888
#ifdef HAVE_gcov
89-
extern void __gcov_flush();
89+
#include <gcov.h>
9090
#endif
9191

9292
#ifndef DBUG_OFF
@@ -2212,7 +2212,7 @@ void _db_suicide_()
22122212
fprintf(stderr, "SIGKILL myself\n");
22132213
fflush(stderr);
22142214
#ifdef HAVE_gcov
2215-
__gcov_flush();
2215+
__gcov_dump();
22162216
#endif
22172217

22182218
retval= kill(getpid(), SIGKILL);
@@ -2262,7 +2262,7 @@ my_bool _db_my_assert(const char *file, int line, const char *msg)
22622262
fprintf(stderr, "%s:%d: assert: %s\n", file, line, msg);
22632263
fflush(stderr);
22642264
#ifdef HAVE_gcov
2265-
__gcov_flush();
2265+
__gcov_dump();
22662266
#endif
22672267
}
22682268
return a;

debian/autobake-deb.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,6 @@ fi
104104
case "${LSBNAME}"
105105
in
106106
# Debian
107-
stretch)
108-
# MDEV-16525 libzstd-dev-1.1.3 minimum version
109-
sed -e '/libzstd-dev/d' \
110-
-e 's/libcurl4/libcurl3/g' -i debian/control
111-
remove_rocksdb_tools
112-
disable_pmem
113-
;&
114107
buster)
115108
disable_libfmt
116109
replace_uring_with_aio

extra/mariabackup/xtrabackup.cc

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

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

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

14201420
{"kill-long-queries-timeout", OPT_KILL_LONG_QUERIES_TIMEOUT,
1421-
"This option specifies the number of seconds innobackupex waits "
1421+
"This option specifies the number of seconds " XB_TOOL_NAME " waits "
14221422
"between starting FLUSH TABLES WITH READ LOCK and killing those "
14231423
"queries that block it. Default is 0 seconds, which means "
1424-
"innobackupex will not attempt to kill any queries.",
1424+
XB_TOOL_NAME " will not attempt to kill any queries.",
14251425
(uchar *) &opt_kill_long_queries_timeout,
14261426
(uchar *) &opt_kill_long_queries_timeout, 0, GET_UINT, REQUIRED_ARG, 0, 0,
14271427
0, 0, 0, 0},
14281428

14291429
{"ftwrl-wait-timeout", OPT_LOCK_WAIT_TIMEOUT,
1430-
"This option specifies time in seconds that innobackupex should wait "
1430+
"This option specifies time in seconds that " XB_TOOL_NAME " should wait "
14311431
"for queries that would block FTWRL before running it. If there are "
1432-
"still such queries when the timeout expires, innobackupex terminates "
1433-
"with an error. Default is 0, in which case innobackupex does not "
1432+
"still such queries when the timeout expires, " XB_TOOL_NAME " terminates "
1433+
"with an error. Default is 0, in which case " XB_TOOL_NAME " does not "
14341434
"wait for queries to complete and starts FTWRL immediately.",
14351435
(uchar *) &opt_lock_wait_timeout, (uchar *) &opt_lock_wait_timeout, 0,
14361436
GET_UINT, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
14371437

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

19201920
case OPT_INNODB_FLUSH_METHOD:
1921+
#ifdef _WIN32
1922+
/* From: storage/innobase/handler/ha_innodb.cc:innodb_init_params */
1923+
switch (srv_file_flush_method) {
1924+
case SRV_ALL_O_DIRECT_FSYNC + 1 /* "async_unbuffered"="unbuffered" */:
1925+
srv_file_flush_method= SRV_ALL_O_DIRECT_FSYNC;
1926+
break;
1927+
case SRV_ALL_O_DIRECT_FSYNC + 2 /* "normal"="fsync" */:
1928+
srv_file_flush_method= SRV_FSYNC;
1929+
break;
1930+
}
1931+
#endif
19211932
ut_a(srv_file_flush_method
19221933
<= IF_WIN(SRV_ALL_O_DIRECT_FSYNC, SRV_O_DIRECT_NO_FSYNC));
19231934
ADD_PRINT_PARAM_OPT(innodb_flush_method_names[srv_file_flush_method]);
@@ -3104,7 +3115,8 @@ static bool xtrabackup_copy_logfile()
31043115
mysql_mutex_lock(&recv_sys.mutex);
31053116
}
31063117

3107-
msg(">> log scanned up to (" LSN_PF ")", recv_sys.lsn);
3118+
if (verbose)
3119+
msg(">> log scanned up to (" LSN_PF ")", recv_sys.lsn);
31083120
return false;
31093121
}
31103122

@@ -3147,7 +3159,7 @@ static void log_copying_thread()
31473159
my_thread_end();
31483160
}
31493161

3150-
/** whether io_watching_thread() is active; protected by log_sys.mutex */
3162+
/** whether io_watching_thread() is active; protected by recv_sys.mutex */
31513163
static bool have_io_watching_thread;
31523164

31533165
/* io throttle watching (rough) */

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, uint32_t 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
{

0 commit comments

Comments
 (0)