Use DiffSize instead of Size in v1 push

The v1 push code was querying the size of the layer chain up to the
layer it was pushing, rather than just that layer. This made the
progress indicator inaccurate.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
Upstream-commit: 741924384ee7a617af1a0275e2dc674e86b9d0d9
Component: engine
This commit is contained in:
Aaron Lehmann
2015-12-07 11:30:05 -08:00
parent 57ef1043ab
commit 8b7a15edb7
+1 -1
View File
@@ -432,7 +432,7 @@ func (p *v1Pusher) pushImage(v1Image v1Image, ep string) (checksum string, err e
defer arch.Close()
// don't care if this fails; best effort
size, _ := l.Size()
size, _ := l.DiffSize()
// Send the layer
logrus.Debugf("rendered layer for %s of [%d] size", v1ID, size)