prevent any kind of operation simultaneously
Upstream-commit: 2db99441c85fdf1e7d468bc02b085d9e1b95704c Component: engine
This commit is contained in:
@ -477,6 +477,9 @@ func (srv *Server) poolAdd(kind, key string) error {
|
||||
if _, exists := srv.pullingPool[key]; exists {
|
||||
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 {
|
||||
case "pull":
|
||||
|
||||
Reference in New Issue
Block a user