diff options
author | Sergei Golubchik <sergii@pisem.net> | 2012-07-31 19:29:07 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2012-07-31 19:29:07 +0200 |
commit | 0117a92fedc2e5294682127d54034af5b3f96c8e (patch) | |
tree | 0c075a3fa43f64a3895acc704bacf69a96afda14 /mysys/my_rename.c | |
parent | 42ea25d4c51b5466b4b03a29abe480e763732cf2 (diff) | |
download | mariadb-git-0117a92fedc2e5294682127d54034af5b3f96c8e.tar.gz |
MDEV-419 ensure that all HAVE_XXX constants can be set by cmake
add missing checks to configure.cmake
remove dead code and unused HAVE_xxx constants from the sources
Diffstat (limited to 'mysys/my_rename.c')
-rw-r--r-- | mysys/my_rename.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/mysys/my_rename.c b/mysys/my_rename.c index 6704d7c87d0..b89bc4c8fbd 100644 --- a/mysys/my_rename.c +++ b/mysys/my_rename.c @@ -27,22 +27,6 @@ int my_rename(const char *from, const char *to, myf MyFlags) DBUG_ENTER("my_rename"); DBUG_PRINT("my",("from %s to %s MyFlags %d", from, to, MyFlags)); -#if defined(HAVE_FILE_VERSIONS) - { /* Check that there isn't a old file */ - int save_errno; - MY_STAT my_stat_result; - save_errno=my_errno; - if (my_stat(to,&my_stat_result,MYF(0))) - { - my_errno=EEXIST; - error= -1; - if (MyFlags & MY_FAE+MY_WME) - my_error(EE_LINK, MYF(ME_BELL+ME_WAITTANG),from,to,my_errno); - DBUG_RETURN(error); - } - my_errno=save_errno; - } -#endif #if defined(HAVE_RENAME) #if defined(__WIN__) /* |