When a spanning store occurs at a non-root node but causes an
insufficient leave, mas_spanning_rebalance() was not detecting it as a
non-root node. This only happened when the spanning write was detected
at the root node.
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
mast->free = &free;
mast->destroy = &destroy;
l_mas.node = r_mas.node = m_mas.node = MAS_NONE;
- if (!mas_is_root_limits(mas) &&
+ if (!mas_is_root_limits(mast->orig_l) &&
unlikely(mast->bn->b_end <= mt_min_slots[mast->bn->type])) {
/*
* Do not free the current node as it may be freed in a bulk