mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Merge branch '10.6' into 10.7
This commit is contained in:
@@ -5049,12 +5049,11 @@ static int init_server_components()
|
||||
else // full wsrep initialization
|
||||
{
|
||||
// add basedir/bin to PATH to resolve wsrep script names
|
||||
char* const tmp_path= (char*)my_alloca(strlen(mysql_home) +
|
||||
strlen("/bin") + 1);
|
||||
size_t tmp_path_size= strlen(mysql_home) + 5; /* including "/bin" */
|
||||
char* const tmp_path= (char*)my_alloca(tmp_path_size);
|
||||
if (tmp_path)
|
||||
{
|
||||
strcpy(tmp_path, mysql_home);
|
||||
strcat(tmp_path, "/bin");
|
||||
snprintf(tmp_path, tmp_path_size, "%s/bin", mysql_home);
|
||||
wsrep_prepend_PATH(tmp_path);
|
||||
}
|
||||
else
|
||||
@@ -5884,8 +5883,9 @@ int mysqld_main(int argc, char **argv)
|
||||
char real_server_version[2 * SERVER_VERSION_LENGTH + 10];
|
||||
|
||||
set_server_version(real_server_version, sizeof(real_server_version));
|
||||
strcat(real_server_version, "' as '");
|
||||
strcat(real_server_version, server_version);
|
||||
safe_strcat(real_server_version, sizeof(real_server_version), "' as '");
|
||||
safe_strcat(real_server_version, sizeof(real_server_version),
|
||||
server_version);
|
||||
|
||||
sql_print_information(ER_DEFAULT(ER_STARTUP), my_progname,
|
||||
real_server_version,
|
||||
@@ -7883,7 +7883,8 @@ static int mysql_init_variables(void)
|
||||
}
|
||||
else
|
||||
my_path(prg_dev, my_progname, "mysql/bin");
|
||||
strcat(prg_dev,"/../"); // Remove 'bin' to get base dir
|
||||
// Remove 'bin' to get base dir
|
||||
safe_strcat(prg_dev, sizeof(prg_dev), "/../");
|
||||
cleanup_dirname(mysql_home,prg_dev);
|
||||
}
|
||||
#else
|
||||
|
Reference in New Issue
Block a user