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 (
"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++