mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 17:19:43 -05:00
tavl_delete: copy balance factor
This commit is contained in:
parent
495f7e5629
commit
0951e71df4
1 changed files with 2 additions and 0 deletions
|
|
@ -239,6 +239,8 @@ tavl_delete( Avlnode **root, void* data, AVL_CMP fcmp )
|
|||
p->avl_bits[1] = q->avl_bits[1];
|
||||
q->avl_bits[0] = q->avl_bits[1] = AVL_CHILD;
|
||||
|
||||
q->avl_bf = p->avl_bf;
|
||||
|
||||
/* fix stack positions: old parent of p points to q */
|
||||
pptr[side] = q;
|
||||
if ( side ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue