Skip to content

Commit

Permalink
Add docstring to ProximityFlusher.visitNode.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicktobey committed Jan 14, 2025
1 parent acbf25b commit d4041dd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion go/store/prolly/proximity_mutable_map.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@ func makeNewProximityMap(
return proximityMap.Node(), nil
}

// visitNode produces a new tree.Node that incorporates the provided edits to the provided node.
// As a precondition, we have confirmed that the keys in the provided node will not change, but the
// keys in children nodes might. If the keys in a child node would change, we call rebuildNode on that child.
// Otherwise, we recursively called visitNode on the children.
func (f ProximityFlusher) visitNode(
ctx context.Context,
serializer message.Serializer,
Expand All @@ -163,7 +167,6 @@ func (f ProximityFlusher) visitNode(
keyDesc val.TupleDesc,
valDesc val.TupleDesc,
) (newNode tree.Node, subtrees int, err error) {

var keys [][]byte
var values [][]byte
var nodeSubtrees []uint64
Expand Down

0 comments on commit d4041dd

Please sign in to comment.