Add tracking to elided layer pulls.
Signed-off-by: Matt Moore <mattmoor@google.com>
This commit is contained in:
parent
052f593530
commit
d5482089bf
|
@ -126,6 +126,11 @@ func (ldm *LayerDownloadManager) Download(ctx context.Context, initialRootFS ima
|
||||||
topLayer = l
|
topLayer = l
|
||||||
missingLayer = false
|
missingLayer = false
|
||||||
rootFS.Append(diffID)
|
rootFS.Append(diffID)
|
||||||
|
// Register this repository as a source of this layer.
|
||||||
|
withRegistered, hasRegistered := descriptor.(DownloadDescriptorWithRegistered)
|
||||||
|
if hasRegistered {
|
||||||
|
withRegistered.Registered(diffID)
|
||||||
|
}
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue