From 5737f77d5f041f2f8e00f350ca6d3339836850ac Mon Sep 17 00:00:00 2001 From: chrislu Date: Thu, 30 Oct 2025 18:05:30 -0700 Subject: [PATCH] return error --- weed/server/filer_grpc_server.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/weed/server/filer_grpc_server.go b/weed/server/filer_grpc_server.go index c9fdc37e8..e79f26385 100644 --- a/weed/server/filer_grpc_server.go +++ b/weed/server/filer_grpc_server.go @@ -96,19 +96,16 @@ func (fs *FilerServer) LookupVolume(ctx context.Context, req *filer_pb.LookupVol // Use master client's lookup with fallback - it handles cache and master query vidLocations, err := fs.filer.MasterClient.LookupVolumeIdsWithFallback(ctx, req.VolumeIds) - if err != nil { - // Return partial results even on error - glog.V(0).InfofCtx(ctx, "failed to lookup some volumes: %v", err) - } // Convert wdclient.Location to filer_pb.Location + // Return partial results even if there was an error for vidString, locations := range vidLocations { resp.LocationsMap[vidString] = &filer_pb.Locations{ Locations: wdclientLocationsToPb(locations), } } - return resp, nil + return resp, err } func wdclientLocationsToPb(locations []wdclient.Location) []*filer_pb.Location {