We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7dfca80 commit 5d36212Copy full SHA for 5d36212
pkg/kv/kvserver/allocator/mmaprototype/constraint.go
@@ -311,6 +311,11 @@ type internedLeasePreference struct {
311
constraints constraintsConj
312
}
313
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.
319
func makeBasicNormalizedSpanConfig(
320
conf *roachpb.SpanConfig, interner *stringInterner,
321
) (*normalizedSpanConfig, error) {
0 commit comments