]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2054] suggested doc update for nodeFission().
authorJINMEI Tatuya <jinmei@isc.org>
Wed, 1 Aug 2012 07:07:02 +0000 (00:07 -0700)
committerJINMEI Tatuya <jinmei@isc.org>
Wed, 1 Aug 2012 07:07:02 +0000 (00:07 -0700)
Its semantics has been changed, so the doc must be updated.

src/lib/datasrc/rbtree.h

index 7b186ca340c08f254b393d4ca966c3ab00dbad68..d7b7e7888ef4e5c417e42dd6beeeb1d38463b7c4 100644 (file)
@@ -1277,10 +1277,11 @@ private:
 
     /// Split one node into two nodes for "prefix" and "suffix" parts of
     /// the labels of the original node, respectively.  The given node
-    /// will hold the suffix labels, while the new node will hold the prefix.
-    /// The newly created node represents the labels that the original node
-    /// did, so necessary data are swapped.
-    /// (Note: as commented in the code, this behavior should be changed).
+    /// will hold the prefix, while a newly created node will hold the prefix.
+    /// Note that the original node still represents the same domain name in
+    /// the entire tree.  This ensures that a pointer to a node keeps its
+    /// semantics even if the tree structure is changed (as long as the node
+    /// itself remains valid).
     void nodeFission(util::MemorySegment& mem_sgmt, RBNode<T>& node,
                      const isc::dns::LabelSequence& new_prefix,
                      const isc::dns::LabelSequence& new_suffix);