Release pod name when pod is removed

Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
This commit is contained in:
Mrunal Patel 2016-09-26 15:42:08 -07:00
parent 78aae688e2
commit 3245810bd6

View file

@ -300,6 +300,8 @@ func (s *Server) RemovePodSandbox(ctx context.Context, req *pb.RemovePodSandboxR
return nil, fmt.Errorf("failed to remove sandbox %s directory: %v", *sbID, err) return nil, fmt.Errorf("failed to remove sandbox %s directory: %v", *sbID, err)
} }
s.releasePodName(sb.name)
return &pb.RemovePodSandboxResponse{}, nil return &pb.RemovePodSandboxResponse{}, nil
} }