From 5239bce5e57e2cbacd52f6070550709a078731fb Mon Sep 17 00:00:00 2001 From: Leo Yuriev Date: Wed, 24 Aug 2016 11:52:10 +0300 Subject: [PATCH] mdbx: adds minor assert. More for ae92d0d6718fae4ec3dad237697fad709b3229c7. Change-Id: I32f8f54ec5888fe794b83d42ed7f5ae0138070d4 --- mdb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mdb.c b/mdb.c index 4caa8c5f..6321e9a9 100644 --- a/mdb.c +++ b/mdb.c @@ -7303,6 +7303,7 @@ mdb_node_add(MDB_cursor *mc, indx_t indx, key ? key->mv_size : 0, key ? DKEY(key) : "null"); if (IS_LEAF2(mp)) { + mdb_cassert(mc, key); /* Move higher keys up one slot. */ int ksize = mc->mc_db->md_xsize, dif; char *ptr = LEAF2KEY(mp, indx, ksize);