MCPcopy
hub / github.com/NVIDIA/aistore / initClusterConfig

Method initClusterConfig

ais/earlystart.go:417–430  ·  view source on GitHub ↗
(uuid string)

Source from the content-addressed store, hash-verified

415}
416
417func (p *proxy) initClusterConfig(uuid string) (config *globalConfig, err error) {
418 debug.Assert(p.owner.smap.get().isPrimary(p.si))
419
420 // Create version 1 of the cluster config and set primary URL.
421 return p.owner.config.modify(&configModifier{
422 pre: func(ctx *configModifier, clone *globalConfig) (updated bool, err error) {
423 debug.Assert(clone.version() == 0)
424 clone.Proxy.PrimaryURL = p.si.URL(cmn.NetPublic)
425 clone.UUID = uuid
426 updated = true
427 return
428 },
429 })
430}
431
432// resume rebalance if needed
433func (p *proxy) resumeReb(smap *smapX, config *cmn.Config) {

Callers 1

_configMethod · 0.95

Calls 6

AssertFunction · 0.92
getMethod · 0.65
modifyMethod · 0.65
versionMethod · 0.65
isPrimaryMethod · 0.45
URLMethod · 0.45

Tested by

no test coverage detected