}
// Insert the data.
+ mas_set_offset(mas, b_end);
b_node->slot[b_end] = entry;
b_node->pivot[b_end] = mas->last;
mast->l->node = ancestor;
mab_mas_cp(mast->bn, 0, mt_slots[mast->bn->type] - 1, mast->l);
+ mas_set_offset(mas, mast->bn->b_end - 1);
return true;
}
unsigned char end)
{
int i;
+ unsigned long max = mas->max;
if (mt_in_rcu(mas->tree))
return false; // Need to be rcu safe.
mab_mas_cp(bn, 0, bn->b_end, mas);
+ mas->max = max;
// Zero end of node.
if (end > bn->b_end) {
goto dense;
}
+ if (i)
+ min = mas_safe_min(mas, pivots, i);
+
while(i < mt_slots[type]) {
pivot = _mas_safe_pivot(mas, pivots, i, type);
if (offset + 1 < mt_pivots[mt])
pivots[offset + 1] = mas->last;
slots[offset + 1] = entry;
+ mas_set_offset(mas, offset + 1);
pivots[offset] = mas->index - 1;
goto done;
}