aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chrislusf@users.noreply.github.com>2022-06-15 06:34:32 -0700
committerGitHub <noreply@github.com>2022-06-15 06:34:32 -0700
commit097a12dfb488236b8accda8e868b2c5d4b64b14e (patch)
treec75cea7e2f56f6f332854265853d90c62dc9a340
parent55b9f281d108fa91482188bd77d53147d05a0c22 (diff)
parent338705f375a37c0bb49aed2cea4d3f89d98ef70e (diff)
downloadseaweedfs-097a12dfb488236b8accda8e868b2c5d4b64b14e.tar.xz
seaweedfs-097a12dfb488236b8accda8e868b2c5d4b64b14e.zip
Merge pull request #3187 from ningfdx/remote
-rw-r--r--weed/wdclient/vid_map.go2
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) {