1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-06-23 19:11:40 +02:00

fix compilation error

This commit is contained in:
Chris Lu 2017-05-22 23:04:43 -07:00
parent b3513d3167
commit a7faefd4ce

View file

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