Fix bug: unmarshal got unexpected EOF

Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>
pull/4973/head^2
zhenshan.cao 2021-03-31 13:55:51 +08:00 committed by yefu.chen
parent 604f96ed2b
commit 7bad0a01e9
1 changed files with 1 additions and 1 deletions

View File

@ -804,7 +804,7 @@ func (s *Server) GetSegmentInfo(ctx context.Context, req *datapb.GetSegmentInfoR
resp.Status.Reason = err.Error()
return resp, nil
}
infos[i] = segmentInfo
infos[i] = proto.Clone(segmentInfo).(*datapb.SegmentInfo)
}
resp.Status.ErrorCode = commonpb.ErrorCode_Success
resp.Infos = infos