From 1cf5f8ee3bf24caf68404e6f53d6eac00016f6e1 Mon Sep 17 00:00:00 2001 From: Mrunal Patel Date: Mon, 14 Aug 2017 12:28:06 -0700 Subject: [PATCH] container: Don't call OCI runtime status We get notified of container exits by inotify so we already have updated status of the container in memory state. Signed-off-by: Mrunal Patel --- server/container_status.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/server/container_status.go b/server/container_status.go index a59d9630..1e806812 100644 --- a/server/container_status.go +++ b/server/container_status.go @@ -26,11 +26,6 @@ func (s *Server) ContainerStatus(ctx context.Context, req *pb.ContainerStatusReq return nil, err } - if err = s.Runtime().UpdateStatus(c); err != nil { - return nil, err - } - s.ContainerStateToDisk(c) - containerID := c.ID() resp := &pb.ContainerStatusResponse{ Status: &pb.ContainerStatus{