Browse Source

fix compilation error

pull/427/merge
Chris Lu 8 years ago
parent
commit
a7faefd4ce
  1. 4
      weed/topology/topology_vacuum.go

4
weed/topology/topology_vacuum.go

@ -88,9 +88,9 @@ func (t *Topology) Vacuum(garbageThreshold string) int {
volumeLayout := vl.(*VolumeLayout) volumeLayout := vl.(*VolumeLayout)
for vid, locationlist := range volumeLayout.vid2location { for vid, locationlist := range volumeLayout.vid2location {
vl.accessLock.RLock()
volumeLayout.accessLock.RLock()
isReadOnly, hasValue := volumeLayout.readonlyVolumes[vid] isReadOnly, hasValue := volumeLayout.readonlyVolumes[vid]
vl.accessLock.RUnlock()
volumeLayout.accessLock.RUnlock()
if hasValue && isReadOnly { if hasValue && isReadOnly {
continue continue

Loading…
Cancel
Save