Skip to content

Commit

Permalink
Fix message type of show partitions (milvus-io#17821)
Browse files Browse the repository at this point in the history
Signed-off-by: yangxuan <xuan.yang@zilliz.com>
  • Loading branch information
XuanYang-cn authored Jun 28, 2022
1 parent 797218a commit 6b72f90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/proxy/task_search.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 6b72f90

Please sign in to comment.