diff options
Diffstat (limited to 'weed/storage/store.go')
| -rw-r--r-- | weed/storage/store.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/storage/store.go b/weed/storage/store.go index 6b4467abc..d290909f1 100644 --- a/weed/storage/store.go +++ b/weed/storage/store.go @@ -149,7 +149,7 @@ func (s *Store) FindFreeLocation(diskType DiskType) (ret *DiskLocation) { } currentFreeCount := location.MaxVolumeCount - int32(location.VolumesLen()) currentFreeCount *= erasure_coding.DataShardsCount - currentFreeCount -= int32(location.EcVolumesLen()) + currentFreeCount -= int32(location.EcShardCount()) currentFreeCount /= erasure_coding.DataShardsCount if currentFreeCount > max { max = currentFreeCount |
