Commit 119e500c authored by stewart@mysql.com's avatar stewart@mysql.com

BUG#10831 ndb mgmd LogDestination maxfiles does not rotate logs properly

parent 274fee09
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment