Chris Lu
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
weed/filer/stream.go
|
|
@ -79,10 +79,10 @@ 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 { |
|
|
|
time.Sleep(backoff) |
|
|
|
if err == nil && len(urlStrings) > 0 { |
|
|
|
break |
|
|
|
} |
|
|
|
time.Sleep(backoff) |
|
|
|
} |
|
|
|
if err != nil { |
|
|
|
glog.V(1).Infof("operation LookupFileId %s failed, err: %v", chunkView.FileId, err) |
|
|
|