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:41:15 -07:00
parent 5569b4a42c
commit dc553d52d8

View File

@ -128,5 +128,5 @@ rtree_node_elm_t *
rtree_child_read_hard(rtree_t *rtree, rtree_node_elm_t *elm, unsigned level)
{
return (rtree_node_init(rtree, level, &elm->child));
return (rtree_node_init(rtree, level+1, &elm->child));
}