diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2022-06-15 06:34:32 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-15 06:34:32 -0700 |
| commit | 097a12dfb488236b8accda8e868b2c5d4b64b14e (patch) | |
| tree | c75cea7e2f56f6f332854265853d90c62dc9a340 | |
| parent | 55b9f281d108fa91482188bd77d53147d05a0c22 (diff) | |
| parent | 338705f375a37c0bb49aed2cea4d3f89d98ef70e (diff) | |
| download | seaweedfs-097a12dfb488236b8accda8e868b2c5d4b64b14e.tar.xz seaweedfs-097a12dfb488236b8accda8e868b2c5d4b64b14e.zip | |
Merge pull request #3187 from ningfdx/remote
| -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) { |
