mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-04 10:24:37 +00:00
Merge pull request #353 from devimc/virtcontainers/updateUseRWLock
virtcontainers/api: use RW lock to update containers
This commit is contained in:
@@ -615,7 +615,7 @@ func UpdateContainer(sandboxID, containerID string, resources specs.LinuxResourc
|
|||||||
return errNeedContainerID
|
return errNeedContainerID
|
||||||
}
|
}
|
||||||
|
|
||||||
lockFile, err := rLockSandbox(sandboxID)
|
lockFile, err := rwLockSandbox(sandboxID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user