Merge pull request #30613 from mattmoor/track-elided-pulls

Add tracking to elided layer pulls.
This commit is contained in:
Alexander Morozov 2017-02-01 11:38:35 -08:00 committed by GitHub
commit f9998c8c9f

View file

@ -126,6 +126,11 @@ func (ldm *LayerDownloadManager) Download(ctx context.Context, initialRootFS ima
topLayer = l
missingLayer = false
rootFS.Append(diffID)
// Register this repository as a source of this layer.
withRegistered, hasRegistered := descriptor.(DownloadDescriptorWithRegistered)
if hasRegistered {
withRegistered.Registered(diffID)
}
continue
}
}