Browse Source

fix bug when collecting vacuum errors

pull/555/head
Chris Lu 7 years ago
parent
commit
f7c22f0159
  1. 3
      weed/topology/topology_vacuum.go

3
weed/topology/topology_vacuum.go

@ -55,7 +55,8 @@ func batchVacuumVolumeCompact(vl *VolumeLayout, vid storage.VolumeId, locationli
isVacuumSuccess := true
for _ = range locationlist.list {
select {
case _ = <-ch:
case canCommit := <-ch:
isVacuumSuccess = isVacuumSuccess && canCommit
case <-time.After(30 * time.Minute):
isVacuumSuccess = false
break

Loading…
Cancel
Save