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 af52cdb commit 1cb0b98Copy full SHA for 1cb0b98
plm/clone.go
@@ -732,7 +732,13 @@ func (c *Clone) createIndexes(ctx context.Context, ns Namespace) error {
732
return nil
733
}
734
735
- builtIndexes := make([]*topo.IndexSpecification, 0, len(indexes)-len(unfinishedBuilds))
+ builtIndexesCap := len(indexes) - len(unfinishedBuilds)
736
+ if builtIndexesCap < 0 {
737
+ builtIndexesCap = 0
738
+ }
739
+
740
+ builtIndexes := make([]*topo.IndexSpecification, 0, builtIndexesCap)
741
742
incompleteIndexes := make([]*topo.IndexSpecification, 0, len(unfinishedBuilds))
743
744
for _, index := range indexes {
0 commit comments