diff options
| author | Chris Lu <chris.lu@gmail.com> | 2019-06-28 11:19:08 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2019-06-28 11:19:08 -0700 |
| commit | 92c7f7e069ae3f60a54ee9e359a77902a2e05010 (patch) | |
| tree | 88e1881509425ce4a886a71bbf33f016883d2acd | |
| parent | 9f3f2f7c79d7c88e211566af99640bb3eb3186da (diff) | |
| download | seaweedfs-92c7f7e069ae3f60a54ee9e359a77902a2e05010.tar.xz seaweedfs-92c7f7e069ae3f60a54ee9e359a77902a2e05010.zip | |
fix compilation error
| -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 4c43a225a..06308944d 100644 --- a/weed/wdclient/vid_map.go +++ b/weed/wdclient/vid_map.go @@ -86,7 +86,7 @@ func (vc *vidMap) GetRandomLocation(vid uint32) (serverUrl string, err error) { locations := vc.vid2Locations[vid] if len(locations) == 0 { - return "", fmt.Errorf("volume %d not found", id) + return "", fmt.Errorf("volume %d not found", vid) } return locations[vc.r.Intn(len(locations))].Url, nil |
