Skip to content

Commit

Permalink
Merge pull request #553 from ahfa92/main
Browse files Browse the repository at this point in the history
Remove lock from initiation
  • Loading branch information
caffeinated92 authored Apr 8, 2024
2 parents a4fc220 + beaf91a commit 7cb382f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -487,11 +487,6 @@ func (cluster *Cluster) initOrchetratorNodes() {
return
}
cluster.inInitNodes = true
cluster.Lock()
defer func() {
cluster.inInitNodes = false
cluster.Unlock()
}()

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

cluster.SetAgentsCpuCoreMem()
cluster.inInitNodes = false

}

Expand Down

0 comments on commit 7cb382f

Please sign in to comment.