Fix over-sized allocation of rtree leaf nodes.

Use the correct level metadata when allocating child nodes so that leaf
nodes don't end up over-sized (2^16 elements vs 2^4 elements).
This commit is contained in:
Jason Evans 2016-10-28 00:16:55 -07:00
parent 977103c897
commit 68e14c9884

View File

@ -171,7 +171,7 @@ rtree_child_read_hard(tsdn_t *tsdn, rtree_t *rtree, rtree_elm_t *elm,
unsigned level)
{
return (rtree_node_init(tsdn, rtree, level, &elm->child));
return (rtree_node_init(tsdn, rtree, level+1, &elm->child));
}
static int