diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-01-25 09:17:19 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-01-25 09:17:19 -0800 |
| commit | c48fc8b4de5922c44d22da306699f789353ecdd4 (patch) | |
| tree | dc94157e8ad2e547b807357227fa7bf85124af40 /weed/command/filer_copy.go | |
| parent | 3f6e0e34cbb75fa440c8ccd182adb68ac7301847 (diff) | |
| download | seaweedfs-c48fc8b4de5922c44d22da306699f789353ecdd4.tar.xz seaweedfs-c48fc8b4de5922c44d22da306699f789353ecdd4.zip | |
grpc send error via response instead of grpc error
Diffstat (limited to 'weed/command/filer_copy.go')
| -rw-r--r-- | weed/command/filer_copy.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/command/filer_copy.go b/weed/command/filer_copy.go index f14d18c52..71143f307 100644 --- a/weed/command/filer_copy.go +++ b/weed/command/filer_copy.go @@ -331,7 +331,7 @@ func (worker *FileCopyWorker) uploadFileAsOne(ctx context.Context, task FileCopy }, } - if _, err := client.CreateEntry(ctx, request); err != nil { + if err := filer_pb.CreateEntry(ctx, client, request); err != nil { return fmt.Errorf("update fh: %v", err) } return nil @@ -435,7 +435,7 @@ func (worker *FileCopyWorker) uploadFileInChunks(ctx context.Context, task FileC }, } - if _, err := client.CreateEntry(ctx, request); err != nil { + if err := filer_pb.CreateEntry(ctx, client, request); err != nil { return fmt.Errorf("update fh: %v", err) } return nil |
