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 | |
| parent | 6566c8e114f123a0b8b4a8aac8aae62a8dbc1f97 (diff) | |
| download | seaweedfs-d848d089448372326edd9f8a20dbc9fc3c46f6dd.tar.xz seaweedfs-d848d089448372326edd9f8a20dbc9fc3c46f6dd.zip | |
use public url also for deletions
Diffstat (limited to 'weed/command')
| -rw-r--r-- | weed/command/benchmark.go | 2 | ||||
| -rw-r--r-- | weed/command/filer_copy.go | 2 |
2 files changed, 2 insertions, 2 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} diff --git a/weed/command/filer_copy.go b/weed/command/filer_copy.go index 0aee8cd80..a8aea36bc 100644 --- a/weed/command/filer_copy.go +++ b/weed/command/filer_copy.go @@ -459,7 +459,7 @@ func (worker *FileCopyWorker) uploadFileInChunks(task FileCopyTask, f *os.File, for _, chunk := range chunks { fileIds = append(fileIds, chunk.FileId) } - operation.DeleteFiles(copy.masters[0], worker.options.grpcDialOption, fileIds) + operation.DeleteFiles(copy.masters[0], false, worker.options.grpcDialOption, fileIds) return uploadError } |
