mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
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:
parent
bdb5aa4c27
commit
8b77e0183e
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue