From 599069b2c422729616b6fcf3fa1d8e02a283363e Mon Sep 17 00:00:00 2001 From: Leo Yuriev Date: Wed, 4 May 2016 21:39:32 +0300 Subject: [PATCH] mdbx: remove needless assert. Change-Id: I0129a9e2cd8bda4c541d8b610bcf3f887ddcb75b --- mdb.c | 1 - 1 file changed, 1 deletion(-) diff --git a/mdb.c b/mdb.c index fb9c6a7d..bb573b08 100644 --- a/mdb.c +++ b/mdb.c @@ -4360,7 +4360,6 @@ mdb_env_map(MDB_env *env, void *addr, size_t usedsize) #ifdef MADV_REMOVE if (flags & MDB_WRITEMAP) { - assert(used_edge < env->me_mapsize); (void) madvise(env->me_map + usedsize, env->me_mapsize - usedsize, MADV_REMOVE); } #endif