mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-07 15:41:24 -05:00
ITS#9017 LMDB: allow using fixed file size on Windows
This commit is contained in:
parent
da0527ac75
commit
147582b5dc
1 changed files with 7 additions and 0 deletions
|
|
@ -4469,7 +4469,14 @@ mdb_env_map(MDB_env *env, void *addr)
|
|||
alloctype = MEM_RESERVE;
|
||||
}
|
||||
|
||||
#ifdef MDB_FIXEDSIZE
|
||||
LARGE_INTEGER fsize;
|
||||
fsize.LowPart = msize & 0xffffffff;
|
||||
fsize.HighPart = msize >> 16 >> 16;
|
||||
rc = NtCreateSection(&mh, access, NULL, &fsize, secprot, SEC_RESERVE, env->me_fd);
|
||||
#else
|
||||
rc = NtCreateSection(&mh, access, NULL, NULL, secprot, SEC_RESERVE, env->me_fd);
|
||||
#endif
|
||||
if (rc)
|
||||
return mdb_nt2win32(rc);
|
||||
map = addr;
|
||||
|
|
|
|||
Loading…
Reference in a new issue