aboutsummaryrefslogtreecommitdiff
path: root/weed/command/filer_copy.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-07-23 20:01:43 -0700
committerChris Lu <chris.lu@gmail.com>2021-07-23 20:01:43 -0700
commit5c14da0f1efbd835e076433c0b7f1a80aebf61c2 (patch)
tree9f5fff9c6b4630364e844ab237cea27815d4a8e8 /weed/command/filer_copy.go
parent4cc2165061bef27c403dc7f0a8f7148e63317588 (diff)
downloadseaweedfs-5c14da0f1efbd835e076433c0b7f1a80aebf61c2.tar.xz
seaweedfs-5c14da0f1efbd835e076433c0b7f1a80aebf61c2.zip
filer.copy: fail early if assign request failed
fix https://github.com/chrislusf/seaweedfs/issues/2216
Diffstat (limited to 'weed/command/filer_copy.go')
-rw-r--r--weed/command/filer_copy.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/weed/command/filer_copy.go b/weed/command/filer_copy.go
index 97f1517cd..722f64679 100644
--- a/weed/command/filer_copy.go
+++ b/weed/command/filer_copy.go
@@ -381,6 +381,9 @@ func (worker *FileCopyWorker) uploadFileAsOne(task FileCopyTask, f *os.File) err
if assignResult.Error != "" {
return fmt.Errorf("assign volume failure %v: %v", request, assignResult.Error)
}
+ if assignResult.Url == "" {
+ return fmt.Errorf("assign volume failure %v: %v", request, assignResult)
+ }
return nil
})
})