Browse Source

filer: fix wrong logic during read

pull/3364/head
chrislu 2 years ago
parent
commit
ec0edb1ac4
  1. 2
      weed/filer/stream.go

2
weed/filer/stream.go

@ -79,7 +79,7 @@ func StreamContent(masterClient wdclient.HasLookupFileIdFunction, writer io.Writ
var err error
for _, backoff := range getLookupFileIdBackoffSchedule {
urlStrings, err = masterClient.GetLookupFileIdFunction()(chunkView.FileId)
if err == nil && len(urlStrings) > 0 {
if err != nil || len(urlStrings) == 0 {
time.Sleep(backoff)
break
}

Loading…
Cancel
Save