BUG#10831 ndb mgmd LogDestination maxfiles does not rotate logs properly
This commit is contained in:
parent
274fee09c9
commit
119e500c80
@ -28,29 +28,9 @@
|
|||||||
bool
|
bool
|
||||||
File_class::exists(const char* aFileName)
|
File_class::exists(const char* aFileName)
|
||||||
{
|
{
|
||||||
bool rc = true;
|
MY_STAT stmp;
|
||||||
#ifdef USE_MY_STAT_STRUCT
|
|
||||||
struct my_stat stmp;
|
return (my_stat(aFileName, &stmp, MYF(0))!=NULL);
|
||||||
#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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
long
|
long
|
||||||
|
Loading…
x
Reference in New Issue
Block a user