Skip to content

Commit a747b75

Browse files
craig[bot]tbg
andcommitted
Merge #159047
159047: roachprod: allow multi-store local cluster r=tbg a=tbg Small drive-by to make the reproduction in #159045 work. Epic: none Co-authored-by: Tobias Grieger <[email protected]>
2 parents 7396e56 + fada52d commit a747b75

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)