mirror of https://github.com/milvus-io/milvus.git
Fix DropCollection task in Proxy
Signed-off-by: dragondriver <jiquan.long@zilliz.com>pull/4973/head^2
parent
cdcf006690
commit
8f4995dab5
|
@ -397,14 +397,17 @@ func (dct *DropCollectionTask) Execute() error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
dct.result, _ = dct.masterClient.DropCollection(dct.DropCollectionRequest)
|
||||
if dct.result.ErrorCode != commonpb.ErrorCode_SUCCESS {
|
||||
return errors.New(dct.result.Reason)
|
||||
|
||||
dct.result, err = dct.masterClient.DropCollection(dct.DropCollectionRequest)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
err = globalInsertChannelsMap.closeInsertMsgStream(collID)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue