fixing rbtree patch

name cache parent entry was never initialized. thus causing entries never to be removed from the name cache.
This commit is contained in:
Olga Kornievskaia 2010-12-07 16:50:45 -05:00
parent 0a309c4350
commit c596742659

View file

@ -605,6 +605,7 @@ static int name_cache_insert(
if (RB_INSERT(name_tree, &parent->rbchildren, entry)) if (RB_INSERT(name_tree, &parent->rbchildren, entry))
status = ERROR_FILE_EXISTS; status = ERROR_FILE_EXISTS;
entry->parent = parent;
dprintf(NCLVL2, "<-- name_cache_insert() returning %u\n", status); dprintf(NCLVL2, "<-- name_cache_insert() returning %u\n", status);
return status; return status;