mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-07-30 23:24:44 +08:00
do not add new volumes when below minFreeSpacePercent
fix https://github.com/chrislusf/seaweedfs/issues/2017
This commit is contained in:
parent
7deb4b20cd
commit
ca998328c2
@ -106,6 +106,9 @@ func (s *Store) FindFreeLocation(diskType DiskType) (ret *DiskLocation) {
|
||||
if diskType != location.DiskType {
|
||||
continue
|
||||
}
|
||||
if location.isDiskSpaceLow {
|
||||
continue
|
||||
}
|
||||
currentFreeCount := location.MaxVolumeCount - location.VolumesLen()
|
||||
currentFreeCount *= erasure_coding.DataShardsCount
|
||||
currentFreeCount -= location.EcVolumesLen()
|
||||
|
Loading…
Reference in New Issue
Block a user