Skip to content

Commit d548208

Browse files
committed
Add tracking to elided layer pulls.
Signed-off-by: Matt Moore <[email protected]>
1 parent 052f593 commit d548208

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

distribution/xfer/download.go

+5
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,11 @@ func (ldm *LayerDownloadManager) Download(ctx context.Context, initialRootFS ima
126126
topLayer = l
127127
missingLayer = false
128128
rootFS.Append(diffID)
129+
// Register this repository as a source of this layer.
130+
withRegistered, hasRegistered := descriptor.(DownloadDescriptorWithRegistered)
131+
if hasRegistered {
132+
withRegistered.Registered(diffID)
133+
}
129134
continue
130135
}
131136
}

0 commit comments

Comments
 (0)