Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
d139771b
Commit
d139771b
authored
Jul 29, 2015
by
Howard Chu
Browse files
ITS
#8192
fix reference to EINTR on WIN32 from ITS
#8106
parent
c4ae054b
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/liblmdb/mdb.c
View file @
d139771b
...
...
@@ -3648,7 +3648,6 @@ mdb_env_write_meta(MDB_txn *txn)
/* Write to the SYNC fd */
mfd
=
env
->
me_flags
&
(
MDB_NOSYNC
|
MDB_NOMETASYNC
)
?
env
->
me_fd
:
env
->
me_mfd
;
retry_write:
#ifdef _WIN32
{
memset
(
&
ov
,
0
,
sizeof
(
ov
));
...
...
@@ -3657,12 +3656,15 @@ retry_write:
rc
=
-
1
;
}
#else
retry_write:
rc
=
pwrite
(
mfd
,
ptr
,
len
,
off
);
#endif
if
(
rc
!=
len
)
{
rc
=
rc
<
0
?
ErrCode
()
:
EIO
;
#ifndef _WIN32
if
(
rc
==
EINTR
)
goto
retry_write
;
#endif
DPUTS
(
"write failed, disk error?"
);
/* On a failure, the pagecache still contains the new data.
* Write some old data back, to prevent it from being used.
...
...
Write
Preview
Supports
Markdown
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