From f315eb2bb85a2e0ec73751962826a86b43a1749f Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Mon, 22 Mar 2021 00:12:53 -0700 Subject: [PATCH] fix build error --- weed/server/volume_grpc_read_write.go | 2 +- weed/shell/command_volume_check_disk.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/weed/server/volume_grpc_read_write.go b/weed/server/volume_grpc_read_write.go index e1c583d87..988e9e145 100644 --- a/weed/server/volume_grpc_read_write.go +++ b/weed/server/volume_grpc_read_write.go @@ -31,7 +31,7 @@ func (vs *VolumeServer) WriteNeedleBlob(ctx context.Context, req *volume_server_ } if err = v.WriteNeedleBlob(types.NeedleId(req.NeedleId), req.NeedleBlob, types.Size(req.Size)); err != nil { - return nil, fmt.Errorf("write blob needle %d: %v", req.NeedleId, req.Size, err) + return nil, fmt.Errorf("write blob needle %d size %d: %v", req.NeedleId, req.Size, err) } return resp, nil diff --git a/weed/shell/command_volume_check_disk.go b/weed/shell/command_volume_check_disk.go index 40c9e47ad..62eb55907 100644 --- a/weed/shell/command_volume_check_disk.go +++ b/weed/shell/command_volume_check_disk.go @@ -139,7 +139,7 @@ func (c *commandVolumeCheckDisk) doVolumeCheckDisk(subtrahend, minuend *needle_m } if verbose { - fmt.Fprintf(writer, "%s read %s \n", source.location.dataNode.Id, counter, target.location.dataNode.Id, len(missingNeedles)) + fmt.Fprintf(writer, "read %d,%x %s => %s \n", source.info.Id, needleValue.Key, source.location.dataNode.Id, target.location.dataNode.Id) } if err := c.writeNeedleBlobToTarget(target.location.dataNode.Id, source.info.Id, needleValue, needleBlob); err != nil {