aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2017-12-05 19:02:32 -0500
committerMatthew Heon <matthew.heon@gmail.com>2017-12-05 19:02:32 -0500
commit190b05209f95cf611eb5cafc4bf4cce875c74e9e (patch)
tree01ba09c051dc495efae04fb9cde1a6fe7c7b938d
parent70da705c364bf5f32c85966e15bfa56039b0f6f6 (diff)
downloadpodman-190b05209f95cf611eb5cafc4bf4cce875c74e9e.tar.gz
podman-190b05209f95cf611eb5cafc4bf4cce875c74e9e.tar.bz2
podman-190b05209f95cf611eb5cafc4bf4cce875c74e9e.zip
Small comment update to make use of syncContainer more obvious
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
-rw-r--r--libpod/container.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/libpod/container.go b/libpod/container.go
index df8d63fdc..f1dd34131 100644
--- a/libpod/container.go
+++ b/libpod/container.go
@@ -314,6 +314,8 @@ func (c *Container) attachSocketPath() string {
// Sync this container with on-disk state and runc status
// Should only be called with container lock held
+// This function should suffice to ensure a container's state is accurate and
+// it is valid for use.
func (c *Container) syncContainer() error {
if err := c.runtime.state.UpdateContainer(c); err != nil {
return err