Skip to content

Commit fada52d

Browse files
committed
roachprod: allow multi-store local cluster
1 parent c800fda commit fada52d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/roachprod/install/cockroach.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ func (c *SyncedCluster) Start(ctx context.Context, l *logger.Logger, startOpts S
688688
func (c *SyncedCluster) NodeDir(node Node, storeIndex int) string {
689689
if c.IsLocal() {
690690
if storeIndex != 1 {
691-
panic("NodeDir only supports one store for local deployments")
691+
return filepath.Join(c.localVMDir(node), "data", fmt.Sprintf("data%d", storeIndex))
692692
}
693693
return filepath.Join(c.localVMDir(node), "data")
694694
}

0 commit comments

Comments
 (0)