mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-20 05:08:21 +08:00
mdbx-windows: don't use FILE_FLAG_NO_BUFFERING for compatibility with small DB-pages.
Change-Id: Ib8e51ef0ae713455c52e08447f06baede080f368
This commit is contained in:
parent
60f4134841
commit
041188c5e2
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user