Skip to content

remotecache: fix inline cache in manifest lists#1129

Merged
tiborvass merged 1 commit intomoby:masterfrom
tonistiigi:inline-mlist
Aug 14, 2019
Merged

remotecache: fix inline cache in manifest lists#1129
tiborvass merged 1 commit intomoby:masterfrom
tonistiigi:inline-mlist

Conversation

@tonistiigi
Copy link
Copy Markdown
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>

var mu sync.Mutex
cc := v1.NewCacheChains()
var cMap = map[digest.Digest]*v1.CacheChains{}
Copy link
Copy Markdown
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.

2 participants