diff options
author | Eli Rosenthal <eli.rosenthal@delphix.com> | 2016-06-02 21:06:18 -0700 |
---|---|---|
committer | Matthew Ahrens <mahrens@delphix.com> | 2016-06-03 08:14:45 -0700 |
commit | 86f617e90f3e06f970c3ea9b32836e29500836ab (patch) | |
tree | 534a619271148ebef7eda9372ed0b5992b8d3ff4 | |
parent | 48cb8b9720f175ff5ed31ebd96a9f3d6922bdde9 (diff) | |
download | illumos-joyent-86f617e90f3e06f970c3ea9b32836e29500836ab.tar.gz |
7028 avl_destroy_nodes supports emptying, not just destroying, an avl tree
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Paul Dagnelie <pcd@delphix.com>
Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com>
Approved by: Gordon Ross <gordon.ross@nexenta.com>
-rw-r--r-- | usr/src/common/avl/avl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/src/common/avl/avl.c b/usr/src/common/avl/avl.c index ead2fca2ce..0411afb4c5 100644 --- a/usr/src/common/avl/avl.c +++ b/usr/src/common/avl/avl.c @@ -24,8 +24,8 @@ */ /* - * Copyright (c) 2014 by Delphix. All rights reserved. * Copyright 2015 Nexenta Systems, Inc. All rights reserved. + * Copyright (c) 2015 by Delphix. All rights reserved. */ /* @@ -952,8 +952,8 @@ avl_is_empty(avl_tree_t *tree) /* * Post-order tree walk used to visit all tree nodes and destroy the tree - * in post order. This is used for destroying a tree without paying any cost - * for rebalancing it. + * in post order. This is used for removing all the nodes from a tree without + * paying any cost for rebalancing it. * * example: * |