mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 11:57:38 +02:00
Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/home/jonas/src/mysql-4.1
This commit is contained in:
commit
0c7cb42688
16 changed files with 120 additions and 51 deletions
|
|
@ -28,29 +28,9 @@
|
|||
bool
|
||||
File_class::exists(const char* aFileName)
|
||||
{
|
||||
bool rc = true;
|
||||
#ifdef USE_MY_STAT_STRUCT
|
||||
struct my_stat stmp;
|
||||
#else
|
||||
struct stat stmp;
|
||||
#endif
|
||||
if (my_stat(aFileName, &stmp, MYF(0)) != 0)
|
||||
{
|
||||
rc = false;
|
||||
}
|
||||
|
||||
/*
|
||||
File f;
|
||||
if (!f.open(aFileName, "r"))
|
||||
{
|
||||
rc = (errno == ENOENT ? false : true);
|
||||
}
|
||||
else
|
||||
{
|
||||
f.close();
|
||||
}
|
||||
*/
|
||||
return rc;
|
||||
MY_STAT stmp;
|
||||
|
||||
return (my_stat(aFileName, &stmp, MYF(0))!=NULL);
|
||||
}
|
||||
|
||||
long
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue