Commit 01ac7455 authored by Oleksandr Byelkin's avatar Oleksandr Byelkin

Merge branch '10.3' into bb-10.3-release

parents 3303748f baa6b052
MYSQL_VERSION_MAJOR=10 MYSQL_VERSION_MAJOR=10
MYSQL_VERSION_MINOR=3 MYSQL_VERSION_MINOR=3
MYSQL_VERSION_PATCH=37 MYSQL_VERSION_PATCH=38
SERVER_MATURITY=stable SERVER_MATURITY=stable
...@@ -3578,10 +3578,6 @@ static dberr_t xb_assign_undo_space_start() ...@@ -3578,10 +3578,6 @@ static dberr_t xb_assign_undo_space_start()
ulint space; ulint space;
int n_retries = 5; int n_retries = 5;
if (srv_undo_tablespaces == 0) {
return error;
}
file = os_file_create(0, srv_sys_space.first_datafile()->filepath(), file = os_file_create(0, srv_sys_space.first_datafile()->filepath(),
OS_FILE_OPEN, OS_FILE_NORMAL, OS_DATA_FILE, true, &ret); OS_FILE_OPEN, OS_FILE_NORMAL, OS_DATA_FILE, true, &ret);
......
...@@ -31,7 +31,9 @@ extern ulong my_time_to_wait_for_lock; ...@@ -31,7 +31,9 @@ extern ulong my_time_to_wait_for_lock;
#include <signal.h> #include <signal.h>
#ifdef HAVE_SIGHANDLER_T #ifdef HAVE_SIGHANDLER_T
#define sig_return sighandler_t #define sig_return sighandler_t
#elif defined(SOLARIS) || defined(__sun) || defined(__APPLE__) #elif defined(SOLARIS) || defined(__sun) || defined(__APPLE__) || \
defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || \
defined(__DragonFly__)
typedef void (*sig_return)(int); /* Returns type from signal */ typedef void (*sig_return)(int); /* Returns type from signal */
#else #else
typedef void (*sig_return)(void); /* Returns type from signal */ typedef void (*sig_return)(void); /* Returns type from signal */
......
...@@ -340,7 +340,9 @@ program to set the server\'s scheduling priority to the given value\&. ...@@ -340,7 +340,9 @@ program to set the server\'s scheduling priority to the given value\&.
.\} .\}
.\" mysqld_safe: no-auto-restart option .\" mysqld_safe: no-auto-restart option
.\" no-auto-restart option: mysqld_safe .\" no-auto-restart option: mysqld_safe
\fB\-\-no\-auto\-restart\fR \fB\-\-no\-auto\-restart\fR,
\fB\-\-nowatch\fR,
\fB\-\-no\-watch\fR
.sp .sp
Exit after starting mysqld\&. Exit after starting mysqld\&.
.RE .RE
...@@ -368,21 +370,6 @@ Do not read any option files\&. This must be the first option on the command lin ...@@ -368,21 +370,6 @@ Do not read any option files\&. This must be the first option on the command lin
.sp -1 .sp -1
.IP \(bu 2.3 .IP \(bu 2.3
.\} .\}
.\" mysqld_safe: no-watch option
.\" no-watch option: mysqld_safe
\fB\-\-no\-auto\-restart\fR
.sp
Exit after starting mysqld\&.
.RE
.sp
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}
.\" mysqld_safe: numa-interleave option .\" mysqld_safe: numa-interleave option
.\" numa-interleave option: mysqld_safe .\" numa-interleave option: mysqld_safe
\fB\-\-numa\-interleave\fR \fB\-\-numa\-interleave\fR
......
...@@ -12,3 +12,17 @@ SELECT * FROM t; ...@@ -12,3 +12,17 @@ SELECT * FROM t;
i i
1 1
DROP TABLE t; DROP TABLE t;
#
# MDEV-27121 mariabackup incompatible with disabled dedicated
# undo log tablespaces
#
call mtr.add_suppression("InnoDB: innodb_undo_tablespaces=0 disables dedicated undo log tablespaces");
# xtrabackup backup
# xtrabackup prepare
# shutdown server
# remove datadir
# xtrabackup move back
# restart server
# Display undo log files from target directory
undo001
undo002
...@@ -29,3 +29,27 @@ SELECT * FROM t; ...@@ -29,3 +29,27 @@ SELECT * FROM t;
DROP TABLE t; DROP TABLE t;
rmdir $targetdir; rmdir $targetdir;
--echo #
--echo # MDEV-27121 mariabackup incompatible with disabled dedicated
--echo # undo log tablespaces
--echo #
call mtr.add_suppression("InnoDB: innodb_undo_tablespaces=0 disables dedicated undo log tablespaces");
let $restart_parameters=--innodb_undo_tablespaces=0;
--source include/restart_mysqld.inc
echo # xtrabackup backup;
--disable_result_log
exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --backup --target-dir=$targetdir;
--enable_result_log
echo # xtrabackup prepare;
--disable_result_log
exec $XTRABACKUP --prepare --target-dir=$targetdir;
-- source include/restart_and_restore.inc
--enable_result_log
--echo # Display undo log files from target directory
list_files $targetdir undo*;
rmdir $targetdir;
...@@ -202,7 +202,7 @@ int start_addr2line_fork(const char *binary_path) ...@@ -202,7 +202,7 @@ int start_addr2line_fork(const char *binary_path)
close(out[0]); close(out[0]);
close(out[1]); close(out[1]);
execlp("addr2line", "addr2line", "-C", "-f", "-e", binary_path, NULL); execlp("addr2line", "addr2line", "-C", "-f", "-e", binary_path, NULL);
exit(1); _exit(1);
} }
close(in[0]); close(in[0]);
......
...@@ -33,8 +33,14 @@ static my_bool memcpy_and_test(uchar *to, uchar *from, uint len) ...@@ -33,8 +33,14 @@ static my_bool memcpy_and_test(uchar *to, uchar *from, uint len)
return res; return res;
} }
#if defined(__APPLE__) || defined(__FreeBSD__) #if defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__)
#ifdef __OpenBSD__
#include <netinet/in.h>
#include <net/if_arp.h>
#include <netinet/if_ether.h>
#else
#include <net/ethernet.h> #include <net/ethernet.h>
#endif
#include <sys/sysctl.h> #include <sys/sysctl.h>
#include <net/route.h> #include <net/route.h>
#include <net/if.h> #include <net/if.h>
......
...@@ -4580,8 +4580,8 @@ static int init_common_variables() ...@@ -4580,8 +4580,8 @@ static int init_common_variables()
files= my_set_max_open_files(max_open_files); files= my_set_max_open_files(max_open_files);
SYSVAR_AUTOSIZE_IF_CHANGED(open_files_limit, files, ulong); SYSVAR_AUTOSIZE_IF_CHANGED(open_files_limit, files, ulong);
if (files < wanted_files && global_system_variables.log_warnings) if (files < max_open_files && global_system_variables.log_warnings)
sql_print_warning("Could not increase number of max_open_files to more than %u (request: %u)", files, wanted_files); sql_print_warning("Could not increase number of max_open_files to more than %u (request: %u)", files, max_open_files);
/* If we required too much tc_instances than we reduce */ /* If we required too much tc_instances than we reduce */
SYSVAR_AUTOSIZE_IF_CHANGED(tc_instances, SYSVAR_AUTOSIZE_IF_CHANGED(tc_instances,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment