Przeglądaj źródła

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>
Sebastiaan van Stijn 1 rok temu
rodzic
commit
18a0ff2b2b
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      daemon/monitor.go

+ 2 - 2
daemon/monitor.go

@@ -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