mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-06 18:14:14 +08:00
mdbx: remove needless assert.
Change-Id: I0129a9e2cd8bda4c541d8b610bcf3f887ddcb75b
This commit is contained in:
parent
2dd9638321
commit
599069b2c4
1
mdb.c
1
mdb.c
@ -4360,7 +4360,6 @@ mdb_env_map(MDB_env *env, void *addr, size_t usedsize)
|
|||||||
|
|
||||||
#ifdef MADV_REMOVE
|
#ifdef MADV_REMOVE
|
||||||
if (flags & MDB_WRITEMAP) {
|
if (flags & MDB_WRITEMAP) {
|
||||||
assert(used_edge < env->me_mapsize);
|
|
||||||
(void) madvise(env->me_map + usedsize, env->me_mapsize - usedsize, MADV_REMOVE);
|
(void) madvise(env->me_map + usedsize, env->me_mapsize - usedsize, MADV_REMOVE);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user