mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Remove "...already being pulled" messages
These don't get seen, so they are unnecessary. Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
This commit is contained in:
parent
26c9b58504
commit
9b9d70ad27
2 changed files with 0 additions and 4 deletions
|
@ -140,7 +140,6 @@ func (p *v1Puller) pullRepository(askedTag string) error {
|
||||||
// ensure no two downloads of the same image happen at the same time
|
// ensure no two downloads of the same image happen at the same time
|
||||||
broadcaster, found := p.poolAdd("pull", "img:"+img.ID)
|
broadcaster, found := p.poolAdd("pull", "img:"+img.ID)
|
||||||
if found {
|
if found {
|
||||||
out.Write(p.sf.FormatProgress(stringid.TruncateID(img.ID), "Layer already being pulled by another client. Waiting.", nil))
|
|
||||||
broadcaster.Add(out)
|
broadcaster.Add(out)
|
||||||
broadcaster.Wait()
|
broadcaster.Wait()
|
||||||
out.Write(p.sf.FormatProgress(stringid.TruncateID(img.ID), "Download complete", nil))
|
out.Write(p.sf.FormatProgress(stringid.TruncateID(img.ID), "Download complete", nil))
|
||||||
|
@ -248,7 +247,6 @@ func (p *v1Puller) pullImage(out io.Writer, imgID, endpoint string, token []stri
|
||||||
broadcaster, found := p.poolAdd("pull", "layer:"+id)
|
broadcaster, found := p.poolAdd("pull", "layer:"+id)
|
||||||
if found {
|
if found {
|
||||||
logrus.Debugf("Image (id: %s) pull is already running, skipping", id)
|
logrus.Debugf("Image (id: %s) pull is already running, skipping", id)
|
||||||
out.Write(p.sf.FormatProgress(stringid.TruncateID(imgID), "Layer already being pulled by another client. Waiting.", nil))
|
|
||||||
broadcaster.Add(out)
|
broadcaster.Add(out)
|
||||||
broadcaster.Wait()
|
broadcaster.Wait()
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -76,7 +76,6 @@ func (p *v2Puller) pullV2Repository(tag string) (err error) {
|
||||||
broadcaster, found := p.poolAdd("pull", taggedName)
|
broadcaster, found := p.poolAdd("pull", taggedName)
|
||||||
if found {
|
if found {
|
||||||
// Another pull of the same repository is already taking place; just wait for it to finish
|
// Another pull of the same repository is already taking place; just wait for it to finish
|
||||||
p.config.OutStream.Write(p.sf.FormatStatus("", "Repository %s already being pulled by another client. Waiting.", p.repoInfo.CanonicalName))
|
|
||||||
broadcaster.Add(p.config.OutStream)
|
broadcaster.Add(p.config.OutStream)
|
||||||
broadcaster.Wait()
|
broadcaster.Wait()
|
||||||
return nil
|
return nil
|
||||||
|
@ -122,7 +121,6 @@ func (p *v2Puller) download(di *downloadInfo) {
|
||||||
|
|
||||||
broadcaster, found := p.poolAdd("pull", "img:"+di.img.ID)
|
broadcaster, found := p.poolAdd("pull", "img:"+di.img.ID)
|
||||||
if found {
|
if found {
|
||||||
out.Write(p.sf.FormatProgress(stringid.TruncateID(di.img.ID), "Layer already being pulled by another client. Waiting.", nil))
|
|
||||||
broadcaster.Add(out)
|
broadcaster.Add(out)
|
||||||
broadcaster.Wait()
|
broadcaster.Wait()
|
||||||
out.Write(p.sf.FormatProgress(stringid.TruncateID(di.img.ID), "Download complete", nil))
|
out.Write(p.sf.FormatProgress(stringid.TruncateID(di.img.ID), "Download complete", nil))
|
||||||
|
|
Loading…
Add table
Reference in a new issue