summaryrefslogtreecommitdiff
path: root/libpod/container_internal.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-05-07 19:50:54 +0200
committerGitHub <noreply@github.com>2019-05-07 19:50:54 +0200
commit7b67c9601e1eab6c881ac44503c285c71b0a4a3a (patch)
treecf0802d1dee6beefd68e20b2a8345c9edeaec80f /libpod/container_internal.go
parent3b5ac1818f09514039fdfec20aa874ae68e6ab7c (diff)
parentf881e32f12c9a30d903b15d8d51729b23928cfa3 (diff)
downloadpodman-7b67c9601e1eab6c881ac44503c285c71b0a4a3a.tar.gz
podman-7b67c9601e1eab6c881ac44503c285c71b0a4a3a.tar.bz2
podman-7b67c9601e1eab6c881ac44503c285c71b0a4a3a.zip
Merge pull request #3073 from mheon/force_lock_realloc
When refreshing after a reboot, force lock allocation
Diffstat (limited to 'libpod/container_internal.go')
-rw-r--r--libpod/container_internal.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/container_internal.go b/libpod/container_internal.go
index 0b4e5763e..e6ffaa6d7 100644
--- a/libpod/container_internal.go
+++ b/libpod/container_internal.go
@@ -516,7 +516,7 @@ func (c *Container) refresh() error {
}
// We need to pick up a new lock
- lock, err := c.runtime.lockManager.RetrieveLock(c.config.LockID)
+ lock, err := c.runtime.lockManager.AllocateAndRetrieveLock(c.config.LockID)
if err != nil {
return errors.Wrapf(err, "error acquiring lock for container %s", c.ID())
}