The Moby Project - a collaborative project for the container ecosystem to assemble container-based systems
Find a file
Alexandre Beslic dcf8828165 Return store.ErrKeyExists on AtomicPut
When using AtomicPut with 'previous' set at nil, it interprets
that the Key should be created with the AtomicPut. Instead of
returning a generic error, we return store.ErrKeyExists if the
key exists in the store during the operation.

Signed-off-by: Alexandre Beslic <abronan@docker.com>
2015-10-14 09:51:18 -07:00
libnetwork/internal/kvstore Return store.ErrKeyExists on AtomicPut 2015-10-14 09:51:18 -07:00