Merge pull request #198 from tonistiigi/unlock-fix
imageresolver: fix concurrent map writesdocker-18.09
commit
31e41a7ffb
|
@ -124,7 +124,7 @@ func (i *inMemoryIngester) reader(ctx context.Context, dgst digest.Digest) (*byt
|
|||
|
||||
func (i *inMemoryIngester) addMap(k digest.Digest, dt []byte) {
|
||||
i.mu.Lock()
|
||||
i.mu.Unlock()
|
||||
defer i.mu.Unlock()
|
||||
i.buffers[k] = dt
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue