Skip to content

Commit ed4a6f1

Browse files
committed
MDEV-10823 amend : Use opt_log_basename instead of hostname to test
filesystem case sensitivity. Hostname can include characters, which are invalid for use as filename, thus case sensitivity test will fail to produce meaningful results.
1 parent f35e918 commit ed4a6f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sql/mysqld.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9887,9 +9887,9 @@ static int test_if_case_insensitive(const char *dir_name)
98879887
MY_STAT stat_info;
98889888
DBUG_ENTER("test_if_case_insensitive");
98899889

9890-
fn_format(buff, glob_hostname, dir_name, ".lower-test",
9890+
fn_format(buff, opt_log_basename, dir_name, ".lower-test",
98919891
MY_UNPACK_FILENAME | MY_REPLACE_EXT | MY_REPLACE_DIR);
9892-
fn_format(buff2, glob_hostname, dir_name, ".LOWER-TEST",
9892+
fn_format(buff2, opt_log_basename, dir_name, ".LOWER-TEST",
98939893
MY_UNPACK_FILENAME | MY_REPLACE_EXT | MY_REPLACE_DIR);
98949894
mysql_file_delete(key_file_casetest, buff2, MYF(0));
98959895
if ((file= mysql_file_create(key_file_casetest,

0 commit comments

Comments
 (0)