[skip e2e] Add comment for getGlobalSegmentIDsByPartitionIds (#14358)

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
This commit is contained in:
bigsheeper 2021-12-28 13:19:40 +08:00 committed by GitHub
parent 925cf4cb5b
commit c0ba4c32af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,6 +63,7 @@ func (g *globalSealedSegmentManager) getGlobalSegmentIDs() []UniqueID {
return resIDs
}
// getGlobalSegmentIDsByPartitionIds returns globalSealedSegments by partitionIDs
func (g *globalSealedSegmentManager) getGlobalSegmentIDsByPartitionIds(partitionIDs []UniqueID) []UniqueID {
g.mu.Lock()
defer g.mu.Unlock()