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

View File

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