Add the missing RLock

This commit is contained in:
Shiming Zhang 2021-05-18 17:27:27 +08:00
parent 2d58b72889
commit bbed9d27b0

View File

@ -65,6 +65,8 @@ func (pdev *podDevices) size() int {
}
func (pdev *podDevices) hasPod(podUID string) bool {
pdev.RLock()
defer pdev.RUnlock()
_, podExists := pdev.devs[podUID]
return podExists
}