mirror of https://github.com/minio/minio.git
				
				
				
			
							parent
							
								
									d6dd17a483
								
							
						
					
					
						commit
						cf407f7176
					
				|  | @ -978,8 +978,7 @@ func (a adminAPIHandlers) SpeedtestHandler(w http.ResponseWriter, r *http.Reques | |||
| 	} | ||||
| 
 | ||||
| 	deleteBucket := func() { | ||||
| 		loc := pathJoin(minioMetaSpeedTestBucket, minioMetaSpeedTestBucketPrefix) | ||||
| 		objectAPI.DeleteBucket(context.Background(), loc, DeleteBucketOptions{ | ||||
| 		objectAPI.DeleteBucket(context.Background(), pathJoin(minioMetaBucket, "speedtest"), DeleteBucketOptions{ | ||||
| 			Force:      true, | ||||
| 			NoRecreate: true, | ||||
| 		}) | ||||
|  |  | |||
|  | @ -62,9 +62,6 @@ const ( | |||
| 	minioMetaTmpBucket = minioMetaBucket + "/tmp" | ||||
| 	// MinIO tmp meta prefix for deleted objects.
 | ||||
| 	minioMetaTmpDeletedBucket = minioMetaTmpBucket + "/.trash" | ||||
| 	minioMetaSpeedTestBucket       = minioMetaBucket + "/speedtest" | ||||
| 	minioMetaSpeedTestBucketPrefix = "objects/" | ||||
| 
 | ||||
| 	// DNS separator (period), used for bucket name validation.
 | ||||
| 	dnsDelimiter = "." | ||||
| 	// On compressed files bigger than this;
 | ||||
|  |  | |||
|  | @ -1168,7 +1168,6 @@ func selfSpeedtest(ctx context.Context, size, concurrent int, duration time.Dura | |||
| 	var totalBytesWritten uint64 | ||||
| 	var totalBytesRead uint64 | ||||
| 
 | ||||
| 	bucket := minioMetaSpeedTestBucket | ||||
| 	objCountPerThread := make([]uint64, concurrent) | ||||
| 	uploadsCtx, uploadsCancel := context.WithCancel(context.Background()) | ||||
| 	defer uploadsCancel() | ||||
|  | @ -1178,7 +1177,7 @@ func selfSpeedtest(ctx context.Context, size, concurrent int, duration time.Dura | |||
| 		uploadsCancel() | ||||
| 	}() | ||||
| 
 | ||||
| 	objNamePrefix := minioMetaSpeedTestBucketPrefix + uuid.New().String() | ||||
| 	objNamePrefix := "speedtest/objects/" + uuid.New().String() | ||||
| 
 | ||||
| 	wg.Add(concurrent) | ||||
| 	for i := 0; i < concurrent; i++ { | ||||
|  | @ -1198,7 +1197,7 @@ func selfSpeedtest(ctx context.Context, size, concurrent int, duration time.Dura | |||
| 					return | ||||
| 				} | ||||
| 				reader := NewPutObjReader(hashReader) | ||||
| 				objInfo, err := objAPI.PutObject(uploadsCtx, bucket, fmt.Sprintf("%s.%d.%d", | ||||
| 				objInfo, err := objAPI.PutObject(uploadsCtx, minioMetaBucket, fmt.Sprintf("%s.%d.%d", | ||||
| 					objNamePrefix, i, objCountPerThread[i]), reader, ObjectOptions{ | ||||
| 					UserDefined: map[string]string{ | ||||
| 						xhttp.AmzStorageClass: storageClass, | ||||
|  | @ -1245,7 +1244,7 @@ func selfSpeedtest(ctx context.Context, size, concurrent int, duration time.Dura | |||
| 				if objCountPerThread[i] == j { | ||||
| 					j = 0 | ||||
| 				} | ||||
| 				r, err := objAPI.GetObjectNInfo(downloadsCtx, bucket, fmt.Sprintf("%s.%d.%d", | ||||
| 				r, err := objAPI.GetObjectNInfo(downloadsCtx, minioMetaBucket, fmt.Sprintf("%s.%d.%d", | ||||
| 					objNamePrefix, i, j), nil, nil, noLock, ObjectOptions{}) | ||||
| 				if err != nil { | ||||
| 					if !contextCanceled(downloadsCtx) { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue