summaryrefslogtreecommitdiff
path: root/libpod/container_internal.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2018-08-24 15:15:56 -0400
committerMatthew Heon <matthew.heon@pm.me>2019-01-04 09:51:09 -0500
commitd4b2f116018e1d8e6a3c4f80f30db45934428c6b (patch)
tree66b020a3db3824d4b5c9831a1b41043aa59a5150 /libpod/container_internal.go
parent3de560053f4b391c8386554160f61a2a086c1564 (diff)
downloadpodman-d4b2f116018e1d8e6a3c4f80f30db45934428c6b.tar.gz
podman-d4b2f116018e1d8e6a3c4f80f30db45934428c6b.tar.bz2
podman-d4b2f116018e1d8e6a3c4f80f30db45934428c6b.zip
Convert pods to SHM locks
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Diffstat (limited to 'libpod/container_internal.go')
-rw-r--r--libpod/container_internal.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/libpod/container_internal.go b/libpod/container_internal.go
index 856313b9d..cc4c36bc9 100644
--- a/libpod/container_internal.go
+++ b/libpod/container_internal.go
@@ -451,12 +451,11 @@ func (c *Container) refresh() error {
}
// We need to pick up a new lock
- lock, err := c.runtime.lockManager.AllocateLock()
+ lock, err := c.runtime.lockManager.RetrieveLock(c.config.LockID)
if err != nil {
return errors.Wrapf(err, "error acquiring lock for container %s", c.ID())
}
c.lock = lock
- c.config.LockID = c.lock.ID()
if err := c.save(); err != nil {
return errors.Wrapf(err, "error refreshing state for container %s", c.ID())