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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
24468e48
Commit
24468e48
authored
Jan 24, 2005
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal:/home/bk/mysql-5.0
into serg.mylan:/usr/home/serg/Abk/mysql-5.0
parents
0a59f6aa
bc78c1f2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
5 deletions
+14
-5
mysys/my_open.c
mysys/my_open.c
+7
-2
mysys/my_sync.c
mysys/my_sync.c
+7
-3
No files found.
mysys/my_open.c
View file @
24468e48
...
...
@@ -79,7 +79,12 @@ int my_close(File fd, myf MyFlags)
DBUG_PRINT
(
"my"
,(
"fd: %d MyFlags: %d"
,
fd
,
MyFlags
));
pthread_mutex_lock
(
&
THR_LOCK_open
);
if
((
err
=
close
(
fd
)))
do
{
err
=
close
(
fd
);
}
while
(
err
==
-
1
&&
errno
==
EINTR
);
if
(
err
)
{
DBUG_PRINT
(
"error"
,(
"Got error %d on close"
,
err
));
my_errno
=
errno
;
...
...
mysys/my_sync.c
View file @
24468e48
...
...
@@ -40,15 +40,19 @@ int my_sync(File fd, myf my_flags)
DBUG_ENTER
(
"my_sync"
);
DBUG_PRINT
(
"my"
,(
"Fd: %d my_flags: %d"
,
fd
,
my_flags
));
do
{
#if defined(HAVE_FDATASYNC)
res
=
fdatasync
(
fd
);
#elif defined(HAVE_FSYNC)
res
=
fsync
(
fd
);
res
=
fsync
(
fd
);
#elif defined(__WIN__)
res
=
_commit
(
fd
);
#else
res
=
0
;
/* No sync (strange OS) */
#endif
}
while
(
res
==
-
1
&&
errno
==
EINTR
);
if
(
res
)
{
if
(
!
(
my_errno
=
errno
))
...
...
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