From 190b05209f95cf611eb5cafc4bf4cce875c74e9e Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Tue, 5 Dec 2017 19:02:32 -0500 Subject: Small comment update to make use of syncContainer more obvious Signed-off-by: Matthew Heon --- libpod/container.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libpod/container.go') 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 -- cgit v1.2.3-54-g00ecf