mdbx: adds minor assert.

More for ae92d0d6718fae4ec3dad237697fad709b3229c7.

Change-Id: I32f8f54ec5888fe794b83d42ed7f5ae0138070d4
This commit is contained in:
Leo Yuriev 2016-08-24 11:52:10 +03:00
parent a92c4a9c17
commit 5239bce5e5

1
mdb.c
View File

@ -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);