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:
parent
977103c897
commit
68e14c9884
@ -171,7 +171,7 @@ rtree_child_read_hard(tsdn_t *tsdn, rtree_t *rtree, rtree_elm_t *elm,
|
|||||||
unsigned level)
|
unsigned level)
|
||||||
{
|
{
|
||||||
|
|
||||||
return (rtree_node_init(tsdn, rtree, level, &elm->child));
|
return (rtree_node_init(tsdn, rtree, level+1, &elm->child));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
Loading…
Reference in New Issue
Block a user