Skip to content

Commit 01ac745

Browse files
committed
Merge branch '10.3' into bb-10.3-release
2 parents 3303748 + baa6b05 commit 01ac745

File tree

10 files changed

+56
-26
lines changed

10 files changed

+56
-26
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
MYSQL_VERSION_MAJOR=10
22
MYSQL_VERSION_MINOR=3
3-
MYSQL_VERSION_PATCH=37
3+
MYSQL_VERSION_PATCH=38
44
SERVER_MATURITY=stable

extra/mariabackup/xtrabackup.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3578,10 +3578,6 @@ static dberr_t xb_assign_undo_space_start()
35783578
ulint space;
35793579
int n_retries = 5;
35803580

3581-
if (srv_undo_tablespaces == 0) {
3582-
return error;
3583-
}
3584-
35853581
file = os_file_create(0, srv_sys_space.first_datafile()->filepath(),
35863582
OS_FILE_OPEN, OS_FILE_NORMAL, OS_DATA_FILE, true, &ret);
35873583

include/my_alarm.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ extern ulong my_time_to_wait_for_lock;
3131
#include <signal.h>
3232
#ifdef HAVE_SIGHANDLER_T
3333
#define sig_return sighandler_t
34-
#elif defined(SOLARIS) || defined(__sun) || defined(__APPLE__)
34+
#elif defined(SOLARIS) || defined(__sun) || defined(__APPLE__) || \
35+
defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || \
36+
defined(__DragonFly__)
3537
typedef void (*sig_return)(int); /* Returns type from signal */
3638
#else
3739
typedef void (*sig_return)(void); /* Returns type from signal */

man/mysqld_safe.1

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,9 @@ program to set the server\'s scheduling priority to the given value\&.
340340
.\}
341341
.\" mysqld_safe: no-auto-restart option
342342
.\" no-auto-restart option: mysqld_safe
343-
\fB\-\-no\-auto\-restart\fR
343+
\fB\-\-no\-auto\-restart\fR,
344+
\fB\-\-nowatch\fR,
345+
\fB\-\-no\-watch\fR
344346
.sp
345347
Exit after starting mysqld\&.
346348
.RE
@@ -368,21 +370,6 @@ Do not read any option files\&. This must be the first option on the command lin
368370
.sp -1
369371
.IP \(bu 2.3
370372
.\}
371-
.\" mysqld_safe: no-watch option
372-
.\" no-watch option: mysqld_safe
373-
\fB\-\-no\-auto\-restart\fR
374-
.sp
375-
Exit after starting mysqld\&.
376-
.RE
377-
.sp
378-
.RS 4
379-
.ie n \{\
380-
\h'-04'\(bu\h'+03'\c
381-
.\}
382-
.el \{\
383-
.sp -1
384-
.IP \(bu 2.3
385-
.\}
386373
.\" mysqld_safe: numa-interleave option
387374
.\" numa-interleave option: mysqld_safe
388375
\fB\-\-numa\-interleave\fR
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--innodb_undo_tablespaces=2

mysql-test/suite/mariabackup/full_backup.result

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,17 @@ SELECT * FROM t;
1212
i
1313
1
1414
DROP TABLE t;
15+
#
16+
# MDEV-27121 mariabackup incompatible with disabled dedicated
17+
# undo log tablespaces
18+
#
19+
call mtr.add_suppression("InnoDB: innodb_undo_tablespaces=0 disables dedicated undo log tablespaces");
20+
# xtrabackup backup
21+
# xtrabackup prepare
22+
# shutdown server
23+
# remove datadir
24+
# xtrabackup move back
25+
# restart server
26+
# Display undo log files from target directory
27+
undo001
28+
undo002

mysql-test/suite/mariabackup/full_backup.test

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,27 @@ SELECT * FROM t;
2929
DROP TABLE t;
3030
rmdir $targetdir;
3131

32+
--echo #
33+
--echo # MDEV-27121 mariabackup incompatible with disabled dedicated
34+
--echo # undo log tablespaces
35+
--echo #
36+
call mtr.add_suppression("InnoDB: innodb_undo_tablespaces=0 disables dedicated undo log tablespaces");
37+
38+
let $restart_parameters=--innodb_undo_tablespaces=0;
39+
--source include/restart_mysqld.inc
40+
41+
echo # xtrabackup backup;
42+
--disable_result_log
43+
exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --backup --target-dir=$targetdir;
44+
--enable_result_log
45+
46+
echo # xtrabackup prepare;
47+
--disable_result_log
48+
exec $XTRABACKUP --prepare --target-dir=$targetdir;
49+
-- source include/restart_and_restore.inc
50+
--enable_result_log
51+
52+
--echo # Display undo log files from target directory
53+
list_files $targetdir undo*;
54+
55+
rmdir $targetdir;

mysys/my_addr_resolve.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ int start_addr2line_fork(const char *binary_path)
202202
close(out[0]);
203203
close(out[1]);
204204
execlp("addr2line", "addr2line", "-C", "-f", "-e", binary_path, NULL);
205-
exit(1);
205+
_exit(1);
206206
}
207207

208208
close(in[0]);

mysys/my_gethwaddr.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,14 @@ static my_bool memcpy_and_test(uchar *to, uchar *from, uint len)
3333
return res;
3434
}
3535

36-
#if defined(__APPLE__) || defined(__FreeBSD__)
36+
#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__)
37+
#ifdef __OpenBSD__
38+
#include <netinet/in.h>
39+
#include <net/if_arp.h>
40+
#include <netinet/if_ether.h>
41+
#else
3742
#include <net/ethernet.h>
43+
#endif
3844
#include <sys/sysctl.h>
3945
#include <net/route.h>
4046
#include <net/if.h>

sql/mysqld.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4580,8 +4580,8 @@ static int init_common_variables()
45804580
files= my_set_max_open_files(max_open_files);
45814581
SYSVAR_AUTOSIZE_IF_CHANGED(open_files_limit, files, ulong);
45824582

4583-
if (files < wanted_files && global_system_variables.log_warnings)
4584-
sql_print_warning("Could not increase number of max_open_files to more than %u (request: %u)", files, wanted_files);
4583+
if (files < max_open_files && global_system_variables.log_warnings)
4584+
sql_print_warning("Could not increase number of max_open_files to more than %u (request: %u)", files, max_open_files);
45854585

45864586
/* If we required too much tc_instances than we reduce */
45874587
SYSVAR_AUTOSIZE_IF_CHANGED(tc_instances,

0 commit comments

Comments
 (0)