diff options
| author | chrislu <chris.lu@gmail.com> | 2024-10-24 22:44:53 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2024-10-24 22:44:53 -0700 |
| commit | 089d4316ef3a2fd24acbdef732a92e24fdb6a27a (patch) | |
| tree | 2f2b8a03db0585bda6eb57c008fea83f09351e48 | |
| parent | 6e388e29c9251ffd4559f5e3d441a96cd556f79a (diff) | |
| download | seaweedfs-089d4316ef3a2fd24acbdef732a92e24fdb6a27a.tar.xz seaweedfs-089d4316ef3a2fd24acbdef732a92e24fdb6a27a.zip | |
ensure 2 volume space since actual need 1.4x volume size empty space
| -rw-r--r-- | weed/shell/command_ec_encode.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/shell/command_ec_encode.go b/weed/shell/command_ec_encode.go index d66bbdba9..84ce4ad68 100644 --- a/weed/shell/command_ec_encode.go +++ b/weed/shell/command_ec_encode.go @@ -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 { |
