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

Signed-off-by: Yang Xuan <xuan.yang@zilliz.com>
This commit is contained in:
XuanYang-cn 2021-10-07 23:46:37 +08:00 committed by GitHub
parent c8fa7026aa
commit 9526d22dc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]