mirror of https://github.com/milvus-io/milvus.git
Use recursion to delete objects in minio (#8671)
Signed-off-by: cai.zhang <cai.zhang@zilliz.com>pull/8652/head
parent
924979c3e1
commit
171f362b86
|
@ -212,7 +212,7 @@ func (kv *MinIOKV) RemoveWithPrefix(prefix string) error {
|
|||
go func() {
|
||||
defer close(objectsCh)
|
||||
|
||||
for object := range kv.minioClient.ListObjects(kv.ctx, kv.bucketName, minio.ListObjectsOptions{Prefix: prefix}) {
|
||||
for object := range kv.minioClient.ListObjects(kv.ctx, kv.bucketName, minio.ListObjectsOptions{Prefix: prefix, Recursive: true}) {
|
||||
objectsCh <- object
|
||||
}
|
||||
}()
|
||||
|
|
Loading…
Reference in New Issue