mirror of
https://github.com/containers/podman.git
synced 2025-05-21 00:56:36 +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
|
||||
lock, err := c.runtime.lockManager.AllocateAndRetrieveLock(c.config.LockID)
|
||||
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
|
||||
|
||||
|
@ -58,7 +58,7 @@ func (p *Pod) refresh() error {
|
||||
// Retrieve the pod's lock
|
||||
lock, err := p.runtime.lockManager.AllocateAndRetrieveLock(p.config.LockID)
|
||||
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
|
||||
|
||||
|
Reference in New Issue
Block a user