Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
119e500c
Commit
119e500c
authored
May 25, 2005
by
stewart@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG#10831 ndb mgmd LogDestination maxfiles does not rotate logs properly
parent
274fee09
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
23 deletions
+3
-23
ndb/src/common/util/File.cpp
ndb/src/common/util/File.cpp
+3
-23
No files found.
ndb/src/common/util/File.cpp
View file @
119e500c
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment