commit | 71373c6105e3cbc9702935b96d8ee01214c405e7 | [log] [tgz] |
---|---|---|
author | Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp> | Sat Feb 29 10:37:35 2020 +0900 |
committer | GitHub <noreply@github.com> | Sat Feb 29 10:37:35 2020 +0900 |
tree | e6dc5d6ca551c6ce00e9c949609e77b3d4a3339b | |
parent | 498fbecafd8cf0e03f775f8a23a786ef4955387d [diff] | |
parent | 1e3971d5561a41d3065bdc7533875fc70983dae3 [diff] |
Merge pull request #40604 from thaJeztah/19.03_backport_mis_unlock [19.03 backport] daemon/cluster: add a missing Unlock
diff --git a/daemon/cluster/swarm.go b/daemon/cluster/swarm.go index 727612c..9614528 100644 --- a/daemon/cluster/swarm.go +++ b/daemon/cluster/swarm.go
@@ -33,6 +33,7 @@ // 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()