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 {
|
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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue