mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 17:35:43 +03:00
Update client/lib/cgroupslib/partition_linux.go
Co-authored-by: Tim Gross <tgross@hashicorp.com>
This commit is contained in:
committed by
GitHub
parent
426c225dc2
commit
9c5f962940
@@ -93,7 +93,7 @@ func (p *partition) Release(cores *idset.Set[hw.CoreID]) error {
|
||||
|
||||
p.reserve.RemoveSet(cores)
|
||||
|
||||
// Use the intersection with the usable cores to avoid adding more cores than available.
|
||||
// Use the intersection with the usable cores to avoid removing more cores than available.
|
||||
p.share.InsertSet(p.usableCores.Intersect(cores))
|
||||
return p.write()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user