未验证 提交 ad6b06ed 编写于 作者: S sunby 提交者: GitHub

[skip ci]Add comment for Clone (#9390)

Signed-off-by: Nsunby <bingyi.sun@zilliz.com>
上级 6c0b38eb
......@@ -153,6 +153,7 @@ func (s *SegmentsInfo) AddSegmentBinlogs(segmentID UniqueID, field2Binlogs map[U
}
}
// Clone deep clone the segment info and return a new instance
func (s *SegmentInfo) Clone(opts ...SegmentInfoOption) *SegmentInfo {
info := proto.Clone(s.SegmentInfo).(*datapb.SegmentInfo)
cloned := &SegmentInfo{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册