Merge pull request #40780 from thaJeztah/19.03_backport_map_sync
[19.03 backport] builder: fix concurrent map write
This commit is contained in:
commit
1e1caccb13
1 changed files with 2 additions and 0 deletions
|
@ -241,7 +241,9 @@ func (b *Builder) Build(ctx context.Context, opt backend.BuildConfig) (*builder.
|
|||
}
|
||||
|
||||
defer func() {
|
||||
b.mu.Lock()
|
||||
delete(b.jobs, buildID)
|
||||
b.mu.Unlock()
|
||||
}()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue