mdbx-windows: don't use FILE_FLAG_NO_BUFFERING for compatibility with small DB-pages.

Change-Id: Ib8e51ef0ae713455c52e08447f06baede080f368
This commit is contained in:
Leonid Yuriev 2019-12-08 23:34:49 +03:00
parent 60f4134841
commit 041188c5e2

View File

@ -541,7 +541,7 @@ MDBX_INTERNAL_FUNC int mdbx_openfile(const char *pathname, int flags,
case O_WRONLY: /* assume for MDBX_env_copy() and friends output */
DesiredAccess = GENERIC_WRITE;
ShareMode = 0;
FlagsAndAttributes |= FILE_FLAG_NO_BUFFERING | FILE_FLAG_WRITE_THROUGH;
FlagsAndAttributes |= FILE_FLAG_WRITE_THROUGH;
break;
case O_RDWR:
DesiredAccess = GENERIC_READ | GENERIC_WRITE;