mirror of https://github.com/milvus-io/milvus.git
Remove superfluous idempotent in proxy (#23894)
Signed-off-by: lixinguo <xinguo.li@zilliz.com> Co-authored-by: lixinguo <xinguo.li@zilliz.com>pull/23919/head
parent
fc010ee86b
commit
dcf55e77b5
|
@ -305,11 +305,6 @@ func (dct *dropCollectionTask) PreExecute(ctx context.Context) error {
|
|||
func (dct *dropCollectionTask) Execute(ctx context.Context) error {
|
||||
var err error
|
||||
dct.result, err = dct.rootCoord.DropCollection(ctx, dct.DropCollectionRequest)
|
||||
if common.IsCollectionNotExistError(err) {
|
||||
// make dropping collection idempotent.
|
||||
dct.result = &commonpb.Status{ErrorCode: commonpb.ErrorCode_Success}
|
||||
return nil
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue