fix compilation error

This commit is contained in:
Chris Lu 2020-03-13 15:51:38 -07:00
parent c90eb0da1f
commit 4ce23e8809

View file

@ -261,7 +261,7 @@ func (vl *VolumeLayout) SetVolumeAvailable(dn *DataNode, vid needle.VolumeId) bo
vl.accessLock.Lock()
defer vl.accessLock.Unlock()
vInfo, err := dn.GetVolumesById(v.Id)
vInfo, err := dn.GetVolumesById(vid)
if err != nil {
return false
}