aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-03-13 15:51:38 -0700
committerChris Lu <chris.lu@gmail.com>2020-03-13 15:51:38 -0700
commit4ce23e88099c5b5a89351d1d6757f587c7ad36fe (patch)
treec055fc8d5bffa4e2a70617eb19bd4bac59d1a9c5
parentc90eb0da1f4cc479b85d9adec975c58f954e9dab (diff)
downloadseaweedfs-4ce23e88099c5b5a89351d1d6757f587c7ad36fe.tar.xz
seaweedfs-4ce23e88099c5b5a89351d1d6757f587c7ad36fe.zip
fix compilation error
-rw-r--r--weed/topology/volume_layout.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/topology/volume_layout.go b/weed/topology/volume_layout.go
index a0c66516d..144e24713 100644
--- a/weed/topology/volume_layout.go
+++ b/weed/topology/volume_layout.go
@@ -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
}