Merge pull request #353 from devimc/virtcontainers/updateUseRWLock

virtcontainers/api: use RW lock to update containers
This commit is contained in:
Archana Shinde
2018-05-30 15:37:13 -07:00
committed by GitHub

View File

@@ -615,7 +615,7 @@ func UpdateContainer(sandboxID, containerID string, resources specs.LinuxResourc
return errNeedContainerID
}
lockFile, err := rLockSandbox(sandboxID)
lockFile, err := rwLockSandbox(sandboxID)
if err != nil {
return err
}