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:
parent
f8363690ca
commit
18a0ff2b2b
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue