未验证 提交 9526d22d 编写于 作者: X XuanYang-cn 提交者: GitHub

[skip ci]Add comment for normal2FlushedSegment (#9431)

Signed-off-by: NYang Xuan <xuan.yang@zilliz.com>
上级 c8fa7026
......@@ -155,6 +155,8 @@ func (replica *SegmentReplica) new2FlushedSegment(segID UniqueID) {
delete(replica.newSegments, segID)
}
// normal2FlushedSegment transfers a segment from *normal* to *flushed* by changing *isFlushed*
// flag into true, and mv the segment from normalSegments map to flushedSegments map.
func (replica *SegmentReplica) normal2FlushedSegment(segID UniqueID) {
var seg Segment = *replica.normalSegments[segID]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册