diff options
author | Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp> | 2020-02-29 10:37:35 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-29 10:37:35 +0900 |
commit | 71373c6105e3cbc9702935b96d8ee01214c405e7 (patch) | |
tree | e6dc5d6ca551c6ce00e9c949609e77b3d4a3339b | |
parent | 498fbecafd8cf0e03f775f8a23a786ef4955387d (diff) | |
parent | 1e3971d5561a41d3065bdc7533875fc70983dae3 (diff) | |
download | docker-71373c6105e3cbc9702935b96d8ee01214c405e7.tar.gz |
Merge pull request #40604 from thaJeztah/19.03_backport_mis_unlockv19.03.7
[19.03 backport] daemon/cluster: add a missing Unlock
-rw-r--r-- | daemon/cluster/swarm.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/daemon/cluster/swarm.go b/daemon/cluster/swarm.go index 727612c6f1..9614528f5c 100644 --- a/daemon/cluster/swarm.go +++ b/daemon/cluster/swarm.go @@ -33,6 +33,7 @@ func (c *Cluster) Init(req types.InitRequest) (string, error) { // API handlers to finish before shutting down the node. c.mu.Lock() if !c.nr.nodeState.IsManager() { + c.mu.Unlock() return "", errSwarmNotManager } c.mu.Unlock() |