sandbox: Reduce number of calls to UpdateStatus
Also, we distinguish between container and a pod infra container in the exit monitor as pod infra containers aren't stored in the main container index. Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
This commit is contained in:
parent
ea4b6fa55d
commit
ce17c5214d
6 changed files with 14 additions and 27 deletions
|
@ -60,10 +60,6 @@ func (s *Server) ListPodSandbox(ctx context.Context, req *pb.ListPodSandboxReque
|
|||
// it's better not to panic
|
||||
continue
|
||||
}
|
||||
if err := s.Runtime().UpdateStatus(podInfraContainer); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
cState := s.Runtime().ContainerStatus(podInfraContainer)
|
||||
created := cState.Created.UnixNano()
|
||||
rStatus := pb.PodSandboxState_SANDBOX_NOTREADY
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue