Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit d3d2e44

Browse files
lzhfromustcthaJeztah
authored andcommitted
daemon/cluster: add a missing Unlock
Signed-off-by: Ziheng Liu <lzhfromustc@gmail.com> (cherry picked from commit 83c0bedba914fa08c9d1f2fe1e47b38a3264777d) Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: 1e3971d5561a41d3065bdc7533875fc70983dae3 Component: engine
1 parent 2de3fd0 commit d3d2e44

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • components/engine/daemon/cluster

components/engine/daemon/cluster/swarm.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ func (c *Cluster) Init(req types.InitRequest) (string, error) {
3333
// API handlers to finish before shutting down the node.
3434
c.mu.Lock()
3535
if !c.nr.nodeState.IsManager() {
36+
c.mu.Unlock()
3637
return "", errSwarmNotManager
3738
}
3839
c.mu.Unlock()

0 commit comments

Comments
 (0)