Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remotecache: fix inline cache in manifest lists #1129

Merged
merged 1 commit into from
Aug 14, 2019

Conversation

tonistiigi
Copy link
Member

Fix issues where inline cache was exported to/imported from manifest lists. Previously the importer could only match one submanifest and exporter didn't export in deterministic order.

Signed-off-by: Tonis Tiigi tonistiigi@gmail.com

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
@@ -110,8 +109,7 @@ func (ci *contentCacheImporter) importInlineCache(ctx context.Context, dt []byte
return nil, err
}

var mu sync.Mutex
cc := v1.NewCacheChains()
var cMap = map[digest.Digest]*v1.CacheChains{}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
var cMap = map[digest.Digest]*v1.CacheChains{}
var cMap = make(map[digest.Digest]*v1.CacheChains, len(m))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants