mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
[skip ci] Add comment for removeSegment (#10202)
Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
This commit is contained in:
parent
24f6834192
commit
dc42fdb2f0
@ -423,6 +423,7 @@ func (colReplica *collectionReplica) setSegment(segment *Segment) error {
|
||||
return colReplica.addSegmentPrivate(segment.segmentID, segment.partitionID, segment)
|
||||
}
|
||||
|
||||
// removeSegment removes a segment from collectionReplica
|
||||
func (colReplica *collectionReplica) removeSegment(segmentID UniqueID) error {
|
||||
colReplica.mu.Lock()
|
||||
defer colReplica.mu.Unlock()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user