Browse Source

parsing

pull/7411/head
chrislu 1 month ago
parent
commit
3be91b2125
  1. 4
      weed/server/filer_grpc_server.go

4
weed/server/filer_grpc_server.go

@ -100,9 +100,9 @@ func (fs *FilerServer) LookupVolume(ctx context.Context, req *filer_pb.LookupVol
var vidsToLookup []string
for _, vidString := range req.VolumeIds {
vid, err := strconv.Atoi(vidString)
vid, err := strconv.ParseUint(vidString, 10, 32)
if err != nil {
glog.V(1).InfofCtx(ctx, "Unknown volume id %s", vidString)
glog.V(1).InfofCtx(ctx, "Invalid volume id (must be uint32): %s", vidString)
return nil, err
}

Loading…
Cancel
Save