mdbx: minor fix OSAL (extra assert).

Change-Id: I2caad4a9c4638f124a2bae534bff4d9ed7b57f30
This commit is contained in:
Leo Yuriev 2018-01-09 21:18:33 +03:00 committed by Leonid Yuriev
parent abcacea543
commit 455f60eec1

View File

@ -938,8 +938,9 @@ int mdbx_munmap(mdbx_mmap_t *map) {
int mdbx_mresize(int flags, mdbx_mmap_t *map, size_t size, size_t limit) { int mdbx_mresize(int flags, mdbx_mmap_t *map, size_t size, size_t limit) {
assert(size <= limit); assert(size <= limit);
assert(size != map->current || limit != map->length || size < map->filesize);
#if defined(_WIN32) || defined(_WIN64) #if defined(_WIN32) || defined(_WIN64)
assert(size != map->current || limit != map->length || size < map->filesize);
NTSTATUS status; NTSTATUS status;
LARGE_INTEGER SectionSize; LARGE_INTEGER SectionSize;
int err, rc = MDBX_SUCCESS; int err, rc = MDBX_SUCCESS;