mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-20 05:18:21 +08:00
mdbx: adds minor assert.
More for ae92d0d6718fae4ec3dad237697fad709b3229c7. Change-Id: I32f8f54ec5888fe794b83d42ed7f5ae0138070d4
This commit is contained in:
parent
a92c4a9c17
commit
5239bce5e5
1
mdb.c
1
mdb.c
@ -7303,6 +7303,7 @@ mdb_node_add(MDB_cursor *mc, indx_t indx,
|
|||||||
key ? key->mv_size : 0, key ? DKEY(key) : "null");
|
key ? key->mv_size : 0, key ? DKEY(key) : "null");
|
||||||
|
|
||||||
if (IS_LEAF2(mp)) {
|
if (IS_LEAF2(mp)) {
|
||||||
|
mdb_cassert(mc, key);
|
||||||
/* Move higher keys up one slot. */
|
/* Move higher keys up one slot. */
|
||||||
int ksize = mc->mc_db->md_xsize, dif;
|
int ksize = mc->mc_db->md_xsize, dif;
|
||||||
char *ptr = LEAF2KEY(mp, indx, ksize);
|
char *ptr = LEAF2KEY(mp, indx, ksize);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user