mirror of
https://github.com/minio/minio.git
synced 2025-11-06 20:33:07 -05:00
xl: remove cleanupDir instead use Delete() (#11880)
use a single call to remove directly at disk instead of doing recursively at network layer.
This commit is contained in:
@@ -881,7 +881,7 @@ func (er erasureObjects) deleteObject(ctx context.Context, bucket, object string
|
||||
if disks[index] == nil {
|
||||
return errDiskNotFound
|
||||
}
|
||||
return cleanupDir(ctx, disks[index], minioMetaTmpBucket, tmpObj)
|
||||
return disks[index].Delete(ctx, minioMetaTmpBucket, tmpObj, true)
|
||||
}, index)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user