diff options
author | unknown <monty@hundin.mysql.fi> | 2002-09-26 10:20:49 +0300 |
---|---|---|
committer | unknown <monty@hundin.mysql.fi> | 2002-09-26 10:20:49 +0300 |
commit | 54ad43bd6ef2af8d9939f6908d32b9701de046ef (patch) | |
tree | 571fa821300e7df627d48a61419ac4bad0776a9f /mysys/my_symlink.c | |
parent | 74114f27ba77e1e2e8acb71495fd0625e00b10e4 (diff) | |
download | mariadb-git-54ad43bd6ef2af8d9939f6908d32b9701de046ef.tar.gz |
Do filesort if handler has the HA_NOT_READ_PREFIX_LAST flag set.
mysys/my_symlink.c:
More debug info
Diffstat (limited to 'mysys/my_symlink.c')
-rw-r--r-- | mysys/my_symlink.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mysys/my_symlink.c b/mysys/my_symlink.c index 5cc22b6bfbc..e287930ff06 100644 --- a/mysys/my_symlink.c +++ b/mysys/my_symlink.c @@ -115,11 +115,15 @@ int my_realpath(char *to, const char *filename, myf MyFlags) (!lstat(filename,&stat_buff) && S_ISLNK(stat_buff.st_mode))) { char *ptr; + DBUG_PRINT("info",("executing realpath")); if ((ptr=realpath(filename,buff))) + { strmake(to,ptr,FN_REFLEN-1); + } else { /* Realpath didn't work; Use original name */ + DBUG_PRINT("error",("realpath failed with errno: %d", errno)); my_errno=errno; if (MyFlags & MY_WME) my_error(EE_REALPATH, MYF(0), filename, my_errno); |