[skip ci] Add comment for addSegment (#10111)

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
pull/10130/head
bigsheeper 2021-10-18 20:24:55 +08:00 committed by GitHub
parent 9ec4105a85
commit 93ec046ef2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -384,6 +384,7 @@ func (colReplica *collectionReplica) getSegmentIDsPrivate(partitionID UniqueID)
}
//----------------------------------------------------------------------------------------------------- segment
// addSegment add a new segment to collectionReplica
func (colReplica *collectionReplica) addSegment(segmentID UniqueID, partitionID UniqueID, collectionID UniqueID, vChannelID Channel, segType segmentType, onService bool) error {
colReplica.mu.Lock()
defer colReplica.mu.Unlock()