mirror of
https://github.com/containers/podman.git
synced 2025-05-21 17:16:22 +08:00
Add additional debugging when refreshing locks
Signed-off-by: Matthew Heon <mheon@redhat.com>
This commit is contained in:
@ -509,7 +509,7 @@ func (c *Container) refresh() error {
|
|||||||
// We need to pick up a new lock
|
// We need to pick up a new lock
|
||||||
lock, err := c.runtime.lockManager.AllocateAndRetrieveLock(c.config.LockID)
|
lock, err := c.runtime.lockManager.AllocateAndRetrieveLock(c.config.LockID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.Wrapf(err, "error acquiring lock for container %s", c.ID())
|
return errors.Wrapf(err, "error acquiring lock %d for container %s", c.config.LockID, c.ID())
|
||||||
}
|
}
|
||||||
c.lock = lock
|
c.lock = lock
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ func (p *Pod) refresh() error {
|
|||||||
// Retrieve the pod's lock
|
// Retrieve the pod's lock
|
||||||
lock, err := p.runtime.lockManager.AllocateAndRetrieveLock(p.config.LockID)
|
lock, err := p.runtime.lockManager.AllocateAndRetrieveLock(p.config.LockID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.Wrapf(err, "error retrieving lock for pod %s", p.ID())
|
return errors.Wrapf(err, "error retrieving lock %d for pod %s", p.config.LockID, p.ID())
|
||||||
}
|
}
|
||||||
p.lock = lock
|
p.lock = lock
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user