summaryrefslogtreecommitdiff
path: root/sql/sql_load.cc
diff options
context:
space:
mode:
authorKonstantin Osipov <kostja@sun.com>2010-02-03 16:43:03 +0300
committerKonstantin Osipov <kostja@sun.com>2010-02-03 16:43:03 +0300
commitb92ab41c5c380448422bd776c73fddfd5c7507f6 (patch)
tree3b69ab5126c40ef71ad69a5bb469de82c4be90a0 /sql/sql_load.cc
parentdfc15e2acc9312c3357b6149feb771c724ba8252 (diff)
parenta4c3bc618bb83884a19dc157bc56d4e3d2432c22 (diff)
downloadmariadb-git-b92ab41c5c380448422bd776c73fddfd5c7507f6.tar.gz
Merge next-mr -> next-4284
Diffstat (limited to 'sql/sql_load.cc')
-rw-r--r--sql/sql_load.cc13
1 files changed, 7 insertions, 6 deletions
diff --git a/sql/sql_load.cc b/sql/sql_load.cc
index cbd7b3cc232..e8a9e58ef55 100644
--- a/sql/sql_load.cc
+++ b/sql/sql_load.cc
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000-2006 MySQL AB
+/* Copyright (C) 2000-2006 MySQL AB, 2008-2009 Sun Microsystems, Inc
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -341,7 +341,7 @@ int mysql_load(THD *thd,sql_exchange *ex,TABLE_LIST *table_list,
MY_RETURN_REAL_PATH);
#if !defined(__WIN__) && ! defined(__NETWARE__)
MY_STAT stat_info;
- if (!my_stat(name,&stat_info,MYF(MY_WME)))
+ if (!mysql_file_stat(key_file_load, name, &stat_info, MYF(MY_WME)))
DBUG_RETURN(TRUE);
// if we are not in slave thread, the file must be:
@@ -394,7 +394,8 @@ int mysql_load(THD *thd,sql_exchange *ex,TABLE_LIST *table_list,
}
}
- if ((file=my_open(name,O_RDONLY,MYF(MY_WME))) < 0)
+ if ((file= mysql_file_open(key_file_load,
+ name, O_RDONLY, MYF(MY_WME))) < 0)
DBUG_RETURN(TRUE);
}
@@ -412,8 +413,8 @@ int mysql_load(THD *thd,sql_exchange *ex,TABLE_LIST *table_list,
info.escape_char, read_file_from_client, is_fifo);
if (read_info.error)
{
- if (file >= 0)
- my_close(file,MYF(0)); // no files in net reading
+ if (file >= 0)
+ mysql_file_close(file, MYF(0)); // no files in net reading
DBUG_RETURN(TRUE); // Can't allocate buffers
}
@@ -485,7 +486,7 @@ int mysql_load(THD *thd,sql_exchange *ex,TABLE_LIST *table_list,
table->next_number_field=0;
}
if (file >= 0)
- my_close(file,MYF(0));
+ mysql_file_close(file, MYF(0));
free_blobs(table); /* if pack_blob was used */
table->copy_blobs=0;
thd->count_cuted_fields= CHECK_FIELD_IGNORE;