mirror of https://github.com/milvus-io/milvus.git
Fix query node crash when retrieved 0 result (#6087)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>pull/6092/head
parent
56bd434696
commit
10e5fc3382
|
@ -1286,6 +1286,14 @@ func mergeRetrieveResults(dataArr []*segcorepb.RetrieveResults) (*segcorepb.Retr
|
|||
}
|
||||
}
|
||||
|
||||
// not found, return default values indicating not result found
|
||||
if final == nil {
|
||||
final = &segcorepb.RetrieveResults{
|
||||
Ids: nil,
|
||||
FieldsData: []*schemapb.FieldData{},
|
||||
}
|
||||
}
|
||||
|
||||
return final, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue