From 6b72f9013f687457a5d1f690f618c855bbe30cc8 Mon Sep 17 00:00:00 2001 From: XuanYang-cn Date: Tue, 28 Jun 2022 10:06:17 +0800 Subject: [PATCH] Fix message type of show partitions (#17821) Signed-off-by: yangxuan --- internal/proxy/task_search.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/proxy/task_search.go b/internal/proxy/task_search.go index 819d56b057675..38b60db8dba3c 100644 --- a/internal/proxy/task_search.go +++ b/internal/proxy/task_search.go @@ -486,7 +486,7 @@ func checkIfLoaded(ctx context.Context, qc types.QueryCoord, collectionName stri if len(searchPartitionIDs) > 0 { resp, err := qc.ShowPartitions(ctx, &querypb.ShowPartitionsRequest{ Base: &commonpb.MsgBase{ - MsgType: commonpb.MsgType_ShowCollections, + MsgType: commonpb.MsgType_ShowPartitions, SourceID: Params.ProxyCfg.GetNodeID(), }, CollectionID: info.collID, @@ -506,7 +506,7 @@ func checkIfLoaded(ctx context.Context, qc types.QueryCoord, collectionName stri // If request to search collection and collection is not fully loaded resp, err := qc.ShowPartitions(ctx, &querypb.ShowPartitionsRequest{ Base: &commonpb.MsgBase{ - MsgType: commonpb.MsgType_ShowCollections, + MsgType: commonpb.MsgType_ShowPartitions, SourceID: Params.ProxyCfg.GetNodeID(), }, CollectionID: info.collID,