зеркало из https://github.com/microsoft/docker.git
Fix race condition in CLI tests: diff was not acquiring a container lock
Docker-DCO-1.1-Signed-off-by: Erik Hollensbe <github@hollensbe.org> (github: erikh)
This commit is contained in:
Родитель
bdb5aa4c27
Коммит
8b77e0183e
|
@ -672,6 +672,8 @@ func (container *Container) Mount() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (container *Container) Changes() ([]archive.Change, error) {
|
func (container *Container) Changes() ([]archive.Change, error) {
|
||||||
|
container.Lock()
|
||||||
|
defer container.Unlock()
|
||||||
return container.daemon.Changes(container)
|
return container.daemon.Changes(container)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче