moby--moby/daemon/cluster
Flavio Crisciani e2ec006797
Fix race condition between swarm and libnetwork
This commit in conjunction with a libnetwork side commit,
cleans up the libnetwork SetClusterProvider logic interaction.
The previous code was inducing libnetwork to spawn several go
routines that were racing between each other during the agent
init and close.

A test got added to verify that back to back swarm init and leave
are properly processed and not raise crashes

Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
2017-05-10 21:16:52 -07:00
..
controllers/plugin add support for swarmkit generic runtime 2017-04-11 14:02:01 -04:00
convert Propagate the swarm cluster and node TLS info provided by the swarm 2017-05-10 11:29:17 -07:00
executor Change GetRepository to take Named arguments 2017-05-08 16:58:38 -07:00
provider Add engine-api types to docker 2016-09-07 11:05:58 -07:00
cluster.go Fix race condition between swarm and libnetwork 2017-05-10 21:16:52 -07:00
filters.go Add support for UpToDate filter, for internal use 2017-03-31 10:01:32 -07:00
filters_test.go make secret ls support filters in CLI 2017-03-27 10:16:45 +08:00
helpers.go Change "service inspect" to show defaults in place of empty fields 2017-04-10 13:41:16 -07:00
listen_addr.go Inroduce SWARM --data-path-addr flag 2017-04-26 15:33:15 -07:00
listen_addr_linux.go Add fallback to resolveSystemAddr() in linux 2016-09-09 13:27:57 -07:00
listen_addr_others.go Add functional support for Docker sub commands on Solaris 2016-11-07 09:06:34 -08:00
listen_addr_solaris.go Add functional support for Docker sub commands on Solaris 2016-11-07 09:06:34 -08:00
networks.go use make slice to store objects to improve efficiency 2017-04-14 11:02:28 +08:00
noderunner.go Fix race condition between swarm and libnetwork 2017-05-10 21:16:52 -07:00
nodes.go use make slice to store objects to improve efficiency 2017-04-14 11:02:28 +08:00
secrets.go use make slice to store objects to improve efficiency 2017-04-14 11:02:28 +08:00
services.go move service runtime filter to server 2017-04-25 15:38:46 -04:00
swarm.go Fix race condition between swarm and libnetwork 2017-05-10 21:16:52 -07:00
tasks.go use make slice to store objects to improve efficiency 2017-04-14 11:02:28 +08:00
utils.go Rather than remove the swarm directory and re-create, remove the swarm subdirs 2017-03-01 11:56:39 -08:00