comparison src/core/ngx_rbtree.c @ 1764:bead8ca82404

clean rbtree node for all removals
author Igor Sysoev <igor@sysoev.ru>
date Fri, 21 Dec 2007 15:32:51 +0000
parents 3c0b44825071
children d620f497c50f
comparison
equal deleted inserted replaced
1763:1043c21be8d2 1764:bead8ca82404
240 } 240 }
241 241
242 if (subst->right != sentinel) { 242 if (subst->right != sentinel) {
243 subst->right->parent = subst; 243 subst->right->parent = subst;
244 } 244 }
245 245 }
246 /* DEBUG stuff */ 246
247 node->left = NULL; 247 /* DEBUG stuff */
248 node->right = NULL; 248 node->left = NULL;
249 node->parent = NULL; 249 node->right = NULL;
250 node->key = 0; 250 node->parent = NULL;
251 } 251 node->key = 0;
252 252
253 if (red) { 253 if (red) {
254 return; 254 return;
255 } 255 }
256 256