Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
88514: roachprod: fix `roachprod init`. r=srosenberg,erikgrinaker a=renatolabs When a cluster is started with the `--skip-init` option, the caller can run `roachprod init` at any time to initialize the cluster. Unfortunately, the code used to initialize the cluster was duplicated: one copy existed in the `start` path, and another in the `init` path. Since the latter is used far less frequently, it had a bug that went unnoticed: it hardcoded the first node index as `0`, when node indices start at 1. This commit fixes the issue by updating the constant and sharing code between `init `and `start`. Fixes #88226. Release note: None Co-authored-by: Renato Costa <renato@cockroachlabs.com>
- Loading branch information