diff options
| author | ningfd <fangdi.ning@seetatech.com> | 2022-06-15 19:20:13 +0800 |
|---|---|---|
| committer | ningfd <fangdi.ning@seetatech.com> | 2022-06-15 19:20:13 +0800 |
| commit | 338705f375a37c0bb49aed2cea4d3f89d98ef70e (patch) | |
| tree | ecc94f7725fb1b079e38f95fffdd94793d6d6f09 | |
| parent | d4ef06cdcf320f8b8b17279586e0738894869eff (diff) | |
| download | seaweedfs-338705f375a37c0bb49aed2cea4d3f89d98ef70e.tar.xz seaweedfs-338705f375a37c0bb49aed2cea4d3f89d98ef70e.zip | |
fix(wdclient): GetLocations return
| -rw-r--r-- | weed/wdclient/vid_map.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/wdclient/vid_map.go b/weed/wdclient/vid_map.go index cdd783d91..f7a9a0f1a 100644 --- a/weed/wdclient/vid_map.go +++ b/weed/wdclient/vid_map.go @@ -133,7 +133,7 @@ func (vc *vidMap) GetLocations(vid uint32) (locations []Location, found bool) { return } locations, found = vc.ecVid2Locations[vid] - return + return locations, found && len(locations) > 0 } func (vc *vidMap) addLocation(vid uint32, location Location) { |
