summaryrefslogtreecommitdiff
path: root/myisam/mi_rename.c
diff options
context:
space:
mode:
authormonty@hundin.mysql.fi <>2001-06-01 04:27:59 +0300
committermonty@hundin.mysql.fi <>2001-06-01 04:27:59 +0300
commit866a82782c180ca20044ece9634b2721580839a1 (patch)
treeffdc7daed643167b8c8097cf1b60e75151d39eb9 /myisam/mi_rename.c
parent762f423d91a6f7f25db431d50da3d401d9053d8c (diff)
downloadmariadb-git-866a82782c180ca20044ece9634b2721580839a1.tar.gz
Added support for symlinked tables.
myisamchk: Don't force a repair if the only problem was that the open count wasn't correct. Added missing error messages.
Diffstat (limited to 'myisam/mi_rename.c')
-rw-r--r--myisam/mi_rename.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/myisam/mi_rename.c b/myisam/mi_rename.c
index 5c92db3f7ce..4d6250f58f4 100644
--- a/myisam/mi_rename.c
+++ b/myisam/mi_rename.c
@@ -51,7 +51,7 @@ int mi_rename(const char *old_name, const char *new_name)
fn_format(from,old_name,"",MI_NAME_IEXT,4);
fn_format(to,new_name,"",MI_NAME_IEXT,4);
- if (my_rename(from, to, MYF(MY_WME)))
+ if (my_rename_with_symlink(from, to, MYF(MY_WME)))
DBUG_RETURN(my_errno);
fn_format(from,old_name,"",MI_NAME_DEXT,4);
fn_format(to,new_name,"",MI_NAME_DEXT,4);
@@ -60,5 +60,5 @@ int mi_rename(const char *old_name, const char *new_name)
DBUG_RETURN(my_raid_rename(from, to, raid_chunks, MYF(MY_WME)) ? my_errno :
0);
#endif
- DBUG_RETURN(my_rename(from, to,MYF(MY_WME)) ? my_errno : 0);
+ DBUG_RETURN(my_rename_with_symlink(from, to,MYF(MY_WME)) ? my_errno : 0);
}