mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-18 04:54:54 +00:00
Merge pull request #136911 from pohly/dra-e2e-data-race
DRA E2E: fix data race in test driver
This commit is contained in:
@@ -462,6 +462,8 @@ func (ex *ExamplePlugin) nodeUnprepareResource(ctx context.Context, claimRef kub
|
||||
|
||||
logger := klog.FromContext(ctx)
|
||||
|
||||
ex.mutex.Lock()
|
||||
defer ex.mutex.Unlock()
|
||||
claimID := ClaimID{Name: claimRef.Name, UID: claimRef.UID}
|
||||
devices, ok := ex.prepared[claimID]
|
||||
if !ok {
|
||||
|
||||
Reference in New Issue
Block a user