Fix message type of show partitions (#17821)

Signed-off-by: yangxuan <xuan.yang@zilliz.com>
pull/17807/head
XuanYang-cn 2022-06-28 10:06:17 +08:00 committed by GitHub
parent 797218a8ad
commit 6b72f9013f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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,