From 9beb0677e4462e13c45742159dae720732663b3a Mon Sep 17 00:00:00 2001 From: Vitor Arruda Date: Sat, 6 Nov 2021 15:19:00 -0400 Subject: [PATCH] backend: Fix union eplus policy returned nil --- backend/union/policy/eplus.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/union/policy/eplus.go b/backend/union/policy/eplus.go index 000d23f7e..d1aad2c9e 100644 --- a/backend/union/policy/eplus.go +++ b/backend/union/policy/eplus.go @@ -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()