mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
a762222396
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> |
||
---|---|---|
.. | ||
errors.go | ||
store.go | ||
store_test.go | ||
store_unix.go | ||
store_windows.go |