backend: Fix union eplus policy returned nil

This commit is contained in:
Vitor Arruda 2021-11-06 15:19:00 -04:00 committed by Nick Craig-Wood
parent e43b5ce5e5
commit 9beb0677e4

View File

@ -39,7 +39,7 @@ func (p *EpLus) lus(upstreams []*upstream.Fs) (*upstream.Fs, error) {
}
func (p *EpLus) lusEntries(entries []upstream.Entry) (upstream.Entry, error) {
var minUsedSpace int64
var minUsedSpace int64 = math.MaxInt64
var lusEntry upstream.Entry
for _, e := range entries {
space, err := e.UpstreamFs().GetFreeSpace()