Fix DropCollection task in Proxy

Signed-off-by: dragondriver <jiquan.long@zilliz.com>
pull/4973/head^2
dragondriver 2021-02-07 09:56:39 +08:00 committed by yefu.chen
parent cdcf006690
commit 8f4995dab5
1 changed files with 6 additions and 3 deletions

View File

@ -397,14 +397,17 @@ func (dct *DropCollectionTask) Execute() error {
if err != nil { if err != nil {
return err return err
} }
dct.result, _ = dct.masterClient.DropCollection(dct.DropCollectionRequest)
if dct.result.ErrorCode != commonpb.ErrorCode_SUCCESS { dct.result, err = dct.masterClient.DropCollection(dct.DropCollectionRequest)
return errors.New(dct.result.Reason) if err != nil {
return err
} }
err = globalInsertChannelsMap.closeInsertMsgStream(collID) err = globalInsertChannelsMap.closeInsertMsgStream(collID)
if err != nil { if err != nil {
return err return err
} }
return nil return nil
} }