mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge 10.3 into 10.4
This commit is contained in:
@@ -185,7 +185,7 @@ static uint opt_tail_lines= 0;
|
||||
|
||||
static uint opt_connect_timeout= 0;
|
||||
static uint opt_wait_for_pos_timeout= 0;
|
||||
|
||||
static const uint default_wait_for_pos_timeout= 300;
|
||||
static char delimiter[MAX_DELIMITER_LENGTH]= ";";
|
||||
static size_t delimiter_length= 1;
|
||||
|
||||
@@ -5080,6 +5080,8 @@ void do_shutdown_server(struct st_command *command)
|
||||
};
|
||||
DBUG_ENTER("do_shutdown_server");
|
||||
|
||||
/* the wait-for-pos' default based value of 'timeout' must fit to MDEV-23511 */
|
||||
compile_time_assert(default_wait_for_pos_timeout / 5 >= 60);
|
||||
check_command_args(command, command->first_argument, shutdown_args,
|
||||
sizeof(shutdown_args)/sizeof(struct command_arg),
|
||||
' ');
|
||||
@@ -7039,7 +7041,7 @@ static struct my_option my_long_options[] =
|
||||
{"wait_for_pos_timeout", 0,
|
||||
"Number of seconds to wait for master_pos_wait",
|
||||
&opt_wait_for_pos_timeout, &opt_wait_for_pos_timeout, 0, GET_UINT,
|
||||
REQUIRED_ARG, 300, 0, 3600 * 12, 0, 0, 0},
|
||||
REQUIRED_ARG, default_wait_for_pos_timeout, 0, 3600 * 12, 0, 0, 0},
|
||||
{"plugin_dir", 0, "Directory for client-side plugins.",
|
||||
&opt_plugin_dir, &opt_plugin_dir, 0,
|
||||
GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
|
||||
|
Reference in New Issue
Block a user