Browse Source
Merge pull request #2579 from KyleSanderson/patch-1
filer.copy: don't crash when volume creation fails
pull/2584/head
Chris Lu
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
weed/command/filer_copy.go
|
|
@ -482,7 +482,8 @@ func (worker *FileCopyWorker) uploadFileInChunks(task FileCopyTask, f *os.File, |
|
|
|
}) |
|
|
|
}) |
|
|
|
if err != nil { |
|
|
|
fmt.Printf("Failed to assign from %v: %v\n", worker.options.masters, err) |
|
|
|
uploadError = fmt.Errorf("Failed to assign from %v: %v\n", worker.options.masters, err) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
targetUrl := "http://" + assignResult.Location.Url + "/" + assignResult.FileId |
|
|
|