mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-01 18:00:46 +01:00
fix bug when collecting vacuum errors
This commit is contained in:
1 parent
b3f714612d
commit
f7c22f0159
1 file changed
+2
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user