Revert "Use S3 client for uplooads/downloads during perf test (#14553)"

This reverts commit ff811f594b.

Speedtest is broken need to fix this more cleanly.
This commit is contained in:
Minio Trusted
2022-03-16 23:34:41 -07:00
parent 7a733a8d54
commit ffcadcd99e
3 changed files with 28 additions and 28 deletions
+1 -8
View File
@@ -1054,15 +1054,8 @@ func (a adminAPIHandlers) ObjectSpeedtestHandler(w http.ResponseWriter, r *http.
autotune = false
}
err = objectAPI.MakeBucketWithLocation(ctx, globalObjectPerfBucket, BucketOptions{})
if _, ok := err.(BucketExists); !ok {
// Only BucketExists error can be ignored.
writeErrorResponseJSON(ctx, w, toAPIError(ctx, err), r.URL)
return
}
deleteBucket := func() {
objectAPI.DeleteBucket(context.Background(), globalObjectPerfBucket, DeleteBucketOptions{
objectAPI.DeleteBucket(context.Background(), pathJoin(minioMetaBucket, "speedtest"), DeleteBucketOptions{
Force: true,
NoRecreate: true,
})