MCPcopy
hub / github.com/dgraph-io/dgraph / StartAlpha

Method StartAlpha

dgraphtest/local_cluster.go:564–569  ·  view source on GitHub ↗
(id int)

Source from the content-addressed store, hash-verified

562}
563
564func (c *LocalCluster) StartAlpha(id int) error {
565 if id >= c.conf.numAlphas {
566 return fmt.Errorf("invalid id of alpha: %v", id)
567 }
568 return c.startContainer(c.alphas[id])
569}
570
571func (c *LocalCluster) startContainer(dc dnode) error {
572 ctx, cancel := context.WithTimeout(context.Background(), requestTimeout)

Callers 7

TestVectorSnapshotFunction · 0.95
StartMethod · 0.95
runImportTestFunction · 0.80

Calls 2

startContainerMethod · 0.95
ErrorfMethod · 0.45

Tested by 6

TestVectorSnapshotFunction · 0.76
runImportTestFunction · 0.64