From f7c22f0159b79d4f6d0a63df9597cfb1e9e6155d Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Tue, 29 Aug 2017 23:11:08 -0700 Subject: [PATCH] fix bug when collecting vacuum errors --- weed/topology/topology_vacuum.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/weed/topology/topology_vacuum.go b/weed/topology/topology_vacuum.go index ba7c328c5..dd20e8cb2 100644 --- a/weed/topology/topology_vacuum.go +++ b/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