summaryrefslogtreecommitdiff
path: root/myisam/mi_rename.c
diff options
context:
space:
mode:
Diffstat (limited to 'myisam/mi_rename.c')
-rw-r--r--myisam/mi_rename.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/myisam/mi_rename.c b/myisam/mi_rename.c
index 6849e1c3d26..5c92db3f7ce 100644
--- a/myisam/mi_rename.c
+++ b/myisam/mi_rename.c
@@ -30,6 +30,11 @@ int mi_rename(const char *old_name, const char *new_name)
uint raid_type=0,raid_chunks=0;
#endif
DBUG_ENTER("mi_rename");
+
+#ifdef EXTRA_DEBUG
+ check_table_is_closed(old_name,"rename old_table");
+ check_table_is_closed(new_name,"rename new table2");
+#endif
#ifdef USE_RAID
{
MI_INFO *info;
@@ -39,7 +44,10 @@ int mi_rename(const char *old_name, const char *new_name)
raid_chunks = info->s->base.raid_chunks;
mi_close(info);
}
+#ifdef EXTRA_DEBUG
+ check_table_is_closed(old_name,"rename raidcheck");
#endif
+#endif /* USE_RAID */
fn_format(from,old_name,"",MI_NAME_IEXT,4);
fn_format(to,new_name,"",MI_NAME_IEXT,4);