Skip to content

Commit 5d36212

Browse files
committed
mmaprototype: add comment for makeBasicNormalizedSpanConfig
1 parent 7dfca80 commit 5d36212

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/kv/kvserver/allocator/mmaprototype/constraint.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,11 @@ type internedLeasePreference struct {
311311
constraints constraintsConj
312312
}
313313

314+
// makeBasicNormalizedSpanConfig performs the first stage of normalization for
315+
// SpanConfigs: it interns constraints and ensures every conjunction has
316+
// numReplicas > 0 with the sum equaling the required number of replicas (adding
317+
// an empty constraint if needed). It does not perform structural normalization.
318+
// See makeNormalizedSpanConfig for more details.
314319
func makeBasicNormalizedSpanConfig(
315320
conf *roachpb.SpanConfig, interner *stringInterner,
316321
) (*normalizedSpanConfig, error) {

0 commit comments

Comments
 (0)