Browse Source

fix error reporting

related to https://github.com/seaweedfs/seaweedfs/issues/4978
pull/4981/head
chrislu 1 year ago
parent
commit
a667f0ad99
  1. 2
      weed/server/volume_grpc_remote.go

2
weed/server/volume_grpc_remote.go

@ -49,7 +49,7 @@ func (vs *VolumeServer) FetchAndWriteNeedle(ctx context.Context, req *volume_ser
n.SetHasLastModifiedDate()
if _, localWriteErr := vs.store.WriteVolumeNeedle(v.Id, n, true, false); localWriteErr != nil {
if err == nil {
err = fmt.Errorf("local write needle %d size %d: %v", req.NeedleId, req.Size, err)
err = fmt.Errorf("local write needle %d size %d: %v", req.NeedleId, req.Size, localWriteErr)
}
} else {
resp.ETag = n.Etag()

Loading…
Cancel
Save