do not print errFileNotFound in entries.resolve() (#15216)

This commit is contained in:
Harshavardhana 2022-07-04 06:40:46 -07:00 committed by GitHub
parent 0fee993a4b
commit ce667ddae0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -20,6 +20,7 @@ package cmd
import (
"bytes"
"context"
"errors"
"os"
"sort"
"strings"
@ -330,7 +331,9 @@ func (m metaCacheEntries) resolve(r *metadataResolutionParams) (selected *metaCa
// shallow decode.
xl, err := entry.xlmeta()
if err != nil {
logger.LogIf(GlobalContext, err)
if !errors.Is(err, errFileNotFound) {
logger.LogIf(GlobalContext, err)
}
continue
}
objsValid++