diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-03-18 11:16:45 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-03-18 11:16:45 -0700 |
| commit | d848d089448372326edd9f8a20dbc9fc3c46f6dd (patch) | |
| tree | a32646a31bff094dbbcbf5493ab82b680e6bdd4e /weed/command/benchmark.go | |
| parent | 6566c8e114f123a0b8b4a8aac8aae62a8dbc1f97 (diff) | |
| download | seaweedfs-d848d089448372326edd9f8a20dbc9fc3c46f6dd.tar.xz seaweedfs-d848d089448372326edd9f8a20dbc9fc3c46f6dd.zip | |
use public url also for deletions
Diffstat (limited to 'weed/command/benchmark.go')
| -rw-r--r-- | weed/command/benchmark.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/benchmark.go b/weed/command/benchmark.go index e85ab1b9b..6f156d6ed 100644 --- a/weed/command/benchmark.go +++ b/weed/command/benchmark.go @@ -241,7 +241,7 @@ func writeFiles(idChan chan int, fileIdLineChan chan string, s *stat) { if !isSecure && assignResult.Auth != "" { isSecure = true } - if _, err := fp.Upload(0, b.masterClient.GetMaster(), assignResult.Auth, b.grpcDialOption); err == nil { + if _, err := fp.Upload(0, b.masterClient.GetMaster(), false, assignResult.Auth, b.grpcDialOption); err == nil { if random.Intn(100) < *b.deletePercentage { s.total++ delayedDeleteChan <- &delayedFile{time.Now().Add(time.Second), fp} |
