Skip to content

Commit 7cb382f

Browse files
Merge pull request #553 from ahfa92/main
Remove lock from initiation
2 parents a4fc220 + beaf91a commit 7cb382f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

cluster/cluster.go

+1-5
Original file line numberDiff line numberDiff line change
@@ -487,11 +487,6 @@ func (cluster *Cluster) initOrchetratorNodes() {
487487
return
488488
}
489489
cluster.inInitNodes = true
490-
cluster.Lock()
491-
defer func() {
492-
cluster.inInitNodes = false
493-
cluster.Unlock()
494-
}()
495490

496491
//defer cluster.insideInitNodes = false
497492
//cluster.LogModulePrintf(cluster.Conf.Verbose, config.ConstLogModGeneral,LvlInfo, "Loading nodes from orchestrator %s", cluster.Conf.ProvOrchestrator)
@@ -511,6 +506,7 @@ func (cluster *Cluster) initOrchetratorNodes() {
511506
}
512507

513508
cluster.SetAgentsCpuCoreMem()
509+
cluster.inInitNodes = false
514510

515511
}
516512

0 commit comments

Comments
 (0)