Commit 610913c8 authored by hf@deer.(none)'s avatar hf@deer.(none)

Additional fix about paths

parent bff3ed00
...@@ -891,7 +891,7 @@ static File create_file(THD *thd, char *path, sql_exchange *exchange, ...@@ -891,7 +891,7 @@ static File create_file(THD *thd, char *path, sql_exchange *exchange,
option|= MY_REPLACE_DIR; // Force use of db directory option|= MY_REPLACE_DIR; // Force use of db directory
#endif #endif
if (!dirname_length(path)) if (!dirname_length(exchange->file_name))
{ {
strxnmov(path, FN_REFLEN, mysql_real_data_home, thd->db ? thd->db : "", NullS); strxnmov(path, FN_REFLEN, mysql_real_data_home, thd->db ? thd->db : "", NullS);
(void) fn_format(path, exchange->file_name, path, "", option); (void) fn_format(path, exchange->file_name, path, "", option);
......
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