Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

fix error reporting

chrislua667f0ad9939
diff --git a/weed/server/volume_grpc_remote.go b/weed/server/volume_grpc_remote.go
index 20410007ac..64254b3b8d 100644
--- a/weed/server/volume_grpc_remote.go
+++ b/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()