mirror of https://github.com/docker/docs.git
prevent any kind of operation simultaneously
This commit is contained in:
parent
48a892bee5
commit
2db99441c8
|
@ -477,6 +477,9 @@ func (srv *Server) poolAdd(kind, key string) error {
|
||||||
if _, exists := srv.pullingPool[key]; exists {
|
if _, exists := srv.pullingPool[key]; exists {
|
||||||
return fmt.Errorf("pull %s is already in progress", key)
|
return fmt.Errorf("pull %s is already in progress", key)
|
||||||
}
|
}
|
||||||
|
if _, exists := srv.pushingPool[key]; exists {
|
||||||
|
return fmt.Errorf("push %s is already in progress", key)
|
||||||
|
}
|
||||||
|
|
||||||
switch kind {
|
switch kind {
|
||||||
case "pull":
|
case "pull":
|
||||||
|
|
Loading…
Reference in New Issue