Commit a4e103ad authored by Monty's avatar Monty

Fixed bug in ddl log

This issue could only be noticed in very extraordinary circumstances
when trying to rename a temporary table that is not in the file system.

The issue was found when I temporarly disabled check_if_frm_exists()
while searching for another bug.
parent feaeb27b
...@@ -1099,7 +1099,7 @@ static void execute_rename_table(DDL_LOG_ENTRY *ddl_log_entry, handler *file, ...@@ -1099,7 +1099,7 @@ static void execute_rename_table(DDL_LOG_ENTRY *ddl_log_entry, handler *file,
{ {
fr_length= build_table_filename(from_path, FN_REFLEN, fr_length= build_table_filename(from_path, FN_REFLEN,
from_db->str, from_table->str, "", from_db->str, from_table->str, "",
flags & FN_TO_IS_TMP); flags & FN_FROM_IS_TMP);
to_length= build_table_filename(to_path, FN_REFLEN, to_length= build_table_filename(to_path, FN_REFLEN,
to_db->str, to_table->str, "", to_db->str, to_table->str, "",
flags & FN_TO_IS_TMP); flags & FN_TO_IS_TMP);
......
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