Mitigate double read locks on the layered profile

This commit is contained in:
Daniel
2022-08-02 13:59:13 +02:00
parent 0390ab55ab
commit 0b81fb5516
5 changed files with 27 additions and 14 deletions

View File

@@ -89,7 +89,7 @@ func (p *Process) GetProfile(ctx context.Context) (changed bool, err error) {
}
// Assign profile to process.
p.LocalProfileKey = localProfile.Key()
p.PrimaryProfileID = localProfile.ScopedID()
p.profile = localProfile.LayeredProfile()
return true, nil