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/replication | |
| parent | 3f6e0e34cbb75fa440c8ccd182adb68ac7301847 (diff) | |
| download | seaweedfs-c48fc8b4de5922c44d22da306699f789353ecdd4.tar.xz seaweedfs-c48fc8b4de5922c44d22da306699f789353ecdd4.zip | |
grpc send error via response instead of grpc error
Diffstat (limited to 'weed/replication')
| -rw-r--r-- | weed/replication/sink/filersink/filer_sink.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/replication/sink/filersink/filer_sink.go b/weed/replication/sink/filersink/filer_sink.go index f99c7fdf6..58a3ab9c2 100644 --- a/weed/replication/sink/filersink/filer_sink.go +++ b/weed/replication/sink/filersink/filer_sink.go @@ -124,7 +124,7 @@ func (fs *FilerSink) CreateEntry(ctx context.Context, key string, entry *filer_p } glog.V(1).Infof("create: %v", request) - if _, err := client.CreateEntry(ctx, request); err != nil { + if err := filer_pb.CreateEntry(ctx, client, request); err != nil { glog.V(0).Infof("create entry %s: %v", key, err) return fmt.Errorf("create entry %s: %v", key, err) } |
