mdbx: avoids EFAULT "Bad address" while copy-as-is if DB is swapped-out from RAM.

Change-Id: I711efc1c54a04745bd561bc5e1db5e6f6d8b7115
This commit is contained in:
Leonid Yuriev
2019-06-29 18:34:56 +03:00
parent 2e60256978
commit 6960c45e59
2 changed files with 19 additions and 10 deletions

View File

@@ -544,7 +544,6 @@ int mdbx_pread(mdbx_filehandle_t fd, void *buf, size_t bytes, uint64_t offset) {
if (bytes > MAX_WRITE)
return MDBX_EINVAL;
#if defined(_WIN32) || defined(_WIN64)
OVERLAPPED ov;
ov.hEvent = 0;
ov.Offset = (DWORD)offset;