Skip to content

Commit 487e0e1

Browse files
committed
roachprod: fix parse int for grow
Previously, the number of nodes to grow a cluster by was limited to the max of a signed byte. This change increases the limit to a word. Epic: None Release note: None
1 parent 20c3c8e commit 487e0e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cmd/roachprod/cli/commands.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ be fairly distributed across the zones of the cluster).
166166
`,
167167
Args: cobra.ExactArgs(2),
168168
Run: Wrap(func(cmd *cobra.Command, args []string) error {
169-
count, err := strconv.ParseInt(args[1], 10, 8)
169+
count, err := strconv.ParseInt(args[1], 10, 16)
170170
if err != nil || count < 1 {
171171
return errors.Wrapf(err, "invalid num-nodes argument")
172172
}

0 commit comments

Comments
 (0)