[skip ci] Add comment for filterSegmentsByPKs (#13036)

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
pull/13056/head
bigsheeper 2021-12-09 14:12:00 +08:00 committed by GitHub
parent e858006fd8
commit b206980feb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -244,6 +244,7 @@ func processDeleteMessages(replica ReplicaInterface, msg *msgstream.DeleteMsg, d
}
}
// filterSegmentsByPKs would filter segments by primary keys
func filterSegmentsByPKs(pks []int64, segment *Segment) ([]int64, error) {
if pks == nil {
return nil, fmt.Errorf("pks is nil when getSegmentsByPKs")