aboutsummaryrefslogtreecommitdiff
path: root/weed/command/filer_copy.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-02-25 17:15:09 -0800
committerChris Lu <chris.lu@gmail.com>2020-02-25 17:15:09 -0800
commit0841bedb150fb7d4a96c237961474310942c2454 (patch)
tree6ccbddcac285172cc324bc7a845e442fdf77b88b /weed/command/filer_copy.go
parentbc38b72a20bd79bf67ee1770e20dcd538285cedf (diff)
downloadseaweedfs-0841bedb150fb7d4a96c237961474310942c2454.tar.xz
seaweedfs-0841bedb150fb7d4a96c237961474310942c2454.zip
move filer assign volume grpc errror to response
Diffstat (limited to 'weed/command/filer_copy.go')
-rw-r--r--weed/command/filer_copy.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/weed/command/filer_copy.go b/weed/command/filer_copy.go
index a359bf32b..6470cbbca 100644
--- a/weed/command/filer_copy.go
+++ b/weed/command/filer_copy.go
@@ -290,6 +290,9 @@ func (worker *FileCopyWorker) uploadFileAsOne(ctx context.Context, task FileCopy
if assignError != nil {
return fmt.Errorf("assign volume failure %v: %v", request, assignError)
}
+ if assignResult.Error != "" {
+ return fmt.Errorf("assign volume failure %v: %v", request, assignResult.Error)
+ }
return nil
})
if err != nil {
@@ -387,6 +390,9 @@ func (worker *FileCopyWorker) uploadFileInChunks(ctx context.Context, task FileC
if assignError != nil {
return fmt.Errorf("assign volume failure %v: %v", request, assignError)
}
+ if assignResult.Error != "" {
+ return fmt.Errorf("assign volume failure %v: %v", request, assignResult.Error)
+ }
return nil
})
if err != nil {