mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-11-27 12:49:41 +08:00
ensure 2 volume space since actual need 1.4x volume size empty space
This commit is contained in:
parent
6e388e29c9
commit
089d4316ef
@ -317,13 +317,13 @@ func collectVolumeIdsForEcEncode(commandEnv *CommandEnv, selectedCollection stri
|
||||
if float64(v.Size) > fullPercentage/100*float64(volumeSizeLimitMb)*1024*1024 {
|
||||
if good, found := vidMap[v.Id]; found {
|
||||
if good {
|
||||
if diskInfo.FreeVolumeCount < 1 {
|
||||
if diskInfo.FreeVolumeCount < 2 {
|
||||
glog.V(0).Infof("skip %d.%d on %s, no free disk", v.Id, v.Collection, dn.Id)
|
||||
vidMap[v.Id] = false
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if diskInfo.FreeVolumeCount < 1 {
|
||||
if diskInfo.FreeVolumeCount < 2 {
|
||||
glog.V(0).Infof("skip %d.%d on %s, no free disk", v.Id, v.Collection, dn.Id)
|
||||
vidMap[v.Id] = false
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user