moby--moby/volume/store
Aaron Lehmann a762222396 volume: Use a map of maps for VolumeStore.refs
The current implementation of getRefs is a bit fragile. It returns a
slice to callers without copying its contents, and assumes the contents
will not be modified elsewhere.

Also, the current implementation of Dereference requires copying the
slice of references, excluding the one we wish to remove.

To improve both of these things, change refs to be a map of maps.
Deleting an item becomes trivial, and returning a slice of references
necessitates copying from the map.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2016-12-05 15:39:05 -08:00
..
errors.go Fix volume creates blocked by stale cache entries 2016-11-03 11:56:44 -04:00
store.go volume: Use a map of maps for VolumeStore.refs 2016-12-05 15:39:05 -08:00
store_test.go check testing code for runconfig and volume 2016-12-01 17:07:38 +08:00
store_unix.go Get the Docker Engine to build clean on Solaris 2016-05-23 16:37:12 -07:00
store_windows.go Fix typos found across repository 2015-12-13 18:04:12 +02:00