mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 20:09:57 +08:00
[skip ci] Add comments for utility function CompareIndexParams (#8525)
Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>
This commit is contained in:
parent
5e25041254
commit
54331f4aac
@ -13,6 +13,9 @@ package typeutil
|
||||
|
||||
import "github.com/milvus-io/milvus/internal/proto/commonpb"
|
||||
|
||||
// CompareIndexParams compares indexParam1 with indexParam2. When all keys of indexParam1 exist in indexParam2,
|
||||
// and the corresponding value are the same as in indexParam2, return true
|
||||
// Otherwise return false
|
||||
func CompareIndexParams(indexParam1 []*commonpb.KeyValuePair, indexParam2 []*commonpb.KeyValuePair) bool {
|
||||
if indexParam1 == nil && indexParam2 == nil {
|
||||
return true
|
||||
|
Loading…
Reference in New Issue
Block a user