change the mem hierarchy for trees. let the node be owned by the data
authorRonnie Sahlberg <sahlberg@ronnie>
Thu, 9 Aug 2007 04:08:59 +0000 (14:08 +1000)
committerRonnie Sahlberg <sahlberg@ronnie>
Thu, 9 Aug 2007 04:08:59 +0000 (14:08 +1000)
commitadb49f02f08818e8588d114c14499d61e31e7324
tree3ee0de45826c2f3de1fac807cf680dd497873ed0
parent18deb7e015e3189c90c992dc10cf126c92877a88
change the mem hierarchy for trees.   let the node be owned by the data
we store in the tree and use a node destructor so that when the data is
talloc_free()d we also remove the node from the tree.

(This used to be ctdb commit b8dabd1811ebd85ee031563e95085f720a2fa04d)
ctdb/common/rb_tree.c
ctdb/common/rb_tree.h
ctdb/server/ctdb_takeover.c
ctdb/tests/rb_test.c