avoid gzip benchmark data

related to https://github.com/chrislusf/seaweedfs/issues/804
This commit is contained in:
Chris Lu 2018-12-27 13:10:46 -08:00
parent d3660ffce8
commit 2a19511ba8

View file

@ -213,7 +213,11 @@ func writeFiles(idChan chan int, fileIdLineChan chan string, s *stat) {
for id := range idChan {
start := time.Now()
fileSize := int64(*b.fileSize + random.Intn(64))
fp := &operation.FilePart{Reader: &FakeReader{id: uint64(id), size: fileSize}, FileSize: fileSize}
fp := &operation.FilePart{
Reader: &FakeReader{id: uint64(id), size: fileSize},
FileSize: fileSize,
MimeType: "image/bench", // prevent gzip benchmark content
}
ar := &operation.VolumeAssignRequest{
Count: 1,
Collection: *b.collection,