Merge pull request from tonistiigi/map-sync

builder: fix concurrent map write
This commit is contained in:
Akihiro Suda 2020-04-04 08:57:15 +09:00 committed by GitHub
commit 5fef754f1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -240,7 +240,9 @@ func (b *Builder) Build(ctx context.Context, opt backend.BuildConfig) (*builder.
}
defer func() {
b.mu.Lock()
delete(b.jobs, buildID)
b.mu.Unlock()
}()
}