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

Method setupBeforeCluster

dgraphtest/local_cluster.go:237–249  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

235}
236
237func (c *LocalCluster) setupBeforeCluster() error {
238 if err := c.setupBinary(); err != nil {
239 return errors.Wrapf(err, "error setting up binary")
240 }
241
242 higher, err := IsHigherVersion(c.GetVersion(), "v21.03.0")
243 if err != nil {
244 return errors.Wrapf(err, "error checking if version %s is older than v21.03.0", c.GetVersion())
245 }
246 c.lowerThanV21 = !higher
247
248 return nil
249}
250
251func (c *LocalCluster) createContainers() error {
252 var wg sync.WaitGroup

Callers 3

initMethod · 0.95
UpgradeMethod · 0.95
recreateContainersMethod · 0.95

Calls 3

setupBinaryMethod · 0.95
GetVersionMethod · 0.95
IsHigherVersionFunction · 0.70

Tested by

no test coverage detected