mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-05-28 04:35:57 -04:00
ITS#10054 lmdb: more for prev commit
This commit is contained in:
parent
b0facd0288
commit
7025c4ea34
1 changed files with 3 additions and 3 deletions
|
|
@ -4194,9 +4194,6 @@ retry_write:
|
|||
}
|
||||
async_i++;
|
||||
#else /* _WIN32 */
|
||||
#ifdef MDB_USE_PWRITEV
|
||||
wres = pwritev(fd, iov, n, wpos);
|
||||
#else
|
||||
if (n == 1) {
|
||||
while (wsize > MAX_WRITE) {
|
||||
wsize -= MAX_WRITE;
|
||||
|
|
@ -4208,6 +4205,9 @@ retry_write:
|
|||
}
|
||||
wres = pwrite(fd, iov[0].iov_base, wsize, wpos);
|
||||
} else {
|
||||
#ifdef MDB_USE_PWRITEV
|
||||
wres = pwritev(fd, iov, n, wpos);
|
||||
#else
|
||||
retry_seek:
|
||||
if (lseek(fd, wpos, SEEK_SET) == -1) {
|
||||
rc = ErrCode();
|
||||
|
|
|
|||
Loading…
Reference in a new issue