mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Use unlocked version of changes for GetImage
Fixes #7999 Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com>
This commit is contained in:
parent
555ce0cb54
commit
82bdd88e9c
1 changed files with 6 additions and 2 deletions
|
@ -686,10 +686,14 @@ func (container *Container) Mount() error {
|
|||
return container.daemon.Mount(container)
|
||||
}
|
||||
|
||||
func (container *Container) changes() ([]archive.Change, error) {
|
||||
return container.daemon.Changes(container)
|
||||
}
|
||||
|
||||
func (container *Container) Changes() ([]archive.Change, error) {
|
||||
container.Lock()
|
||||
defer container.Unlock()
|
||||
return container.daemon.Changes(container)
|
||||
return container.changes()
|
||||
}
|
||||
|
||||
func (container *Container) GetImage() (*image.Image, error) {
|
||||
|
@ -759,7 +763,7 @@ func (container *Container) GetSize() (int64, int64) {
|
|||
sizeRw = -1
|
||||
}
|
||||
} else {
|
||||
changes, _ := container.Changes()
|
||||
changes, _ := container.changes()
|
||||
if changes != nil {
|
||||
sizeRw = archive.ChangesSize(container.basefs, changes)
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue