[skip ci](shards): fix bug in search

pull/538/head
peng.xu 2019-11-26 13:35:02 +08:00
parent 2cce773589
commit 8b00b11fe5
1 changed files with 3 additions and 3 deletions

View File

@ -49,7 +49,7 @@ class ServiceHandler(milvus_pb2_grpc.MilvusServiceServicer):
status = status_pb2.Status(error_code=status_pb2.SUCCESS,
reason="Success")
if not files_n_topk_results:
return status, []
return status, [], []
merge_id_results = []
merge_dis_results = []
@ -58,7 +58,7 @@ class ServiceHandler(milvus_pb2_grpc.MilvusServiceServicer):
for files_collection in files_n_topk_results:
if isinstance(files_collection, tuple):
status, _ = files_collection
return status, []
return status, [], []
row_num = files_collection.row_num
ids = files_collection.ids