daemon: Daemon.handleContainerExit(): rename err-var for clarity

The "cpErr" naming was a bit confusing; give it a more descriptive name.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2023-08-14 15:17:43 +02:00
parent f8363690ca
commit 18a0ff2b2b
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -108,7 +108,7 @@ func (daemon *Daemon) handleContainerExit(c *container.Container, e *libcontaine
defer c.Unlock() // needs to be called before autoRemove
daemon.setStateCounter(c)
cpErr := c.CheckpointTo(daemon.containersReplica)
checkpointErr := c.CheckpointTo(daemon.containersReplica)
daemon.LogContainerEventWithAttributes(c, "die", attributes)
@ -143,7 +143,7 @@ func (daemon *Daemon) handleContainerExit(c *container.Container, e *libcontaine
}()
}
return cpErr
return checkpointErr
}
// ProcessEvent is called by libcontainerd whenever an event occurs