mirror of
https://github.com/minio/minio.git
synced 2025-01-12 07:23:23 -05:00
remove unncessary logs from WalkDir(), PutObject() (#16818)
This commit is contained in:
parent
de02eca467
commit
e0f4dd6027
@ -972,17 +972,14 @@ func healObjectVersionsDisparity(bucket string, entry metaCacheEntry) error {
|
|||||||
|
|
||||||
fivs, err := entry.fileInfoVersions(bucket)
|
fivs, err := entry.fileInfoVersions(bucket)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
go healObject(bucket, entry.name, "", madmin.HealNormalScan)
|
go healObject(bucket, entry.name, "", madmin.HealDeepScan)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(fivs.Versions) > 2 {
|
if len(fivs.Versions) <= 2 {
|
||||||
return fmt.Errorf("bucket(%s)/object(%s) object with %d versions needs healing, allowing lazy healing via scanner instead here for versions greater than 2",
|
for _, version := range fivs.Versions {
|
||||||
bucket, entry.name, len(fivs.Versions))
|
go healObject(bucket, entry.name, version.VersionID, madmin.HealNormalScan)
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, version := range fivs.Versions {
|
|
||||||
go healObject(bucket, entry.name, version.VersionID, madmin.HealNormalScan)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
@ -323,13 +323,6 @@ func (s *xlStorage) WalkDir(ctx context.Context, opts WalkDirOptions, wr io.Writ
|
|||||||
}
|
}
|
||||||
case isSysErrNotDir(err):
|
case isSysErrNotDir(err):
|
||||||
// skip
|
// skip
|
||||||
default:
|
|
||||||
// It is totally possible that xl.meta was overwritten
|
|
||||||
// while being concurrently listed at the same time in
|
|
||||||
// such scenarios the 'xl.meta' might get truncated
|
|
||||||
if !IsErrIgnored(err, io.EOF, io.ErrUnexpectedEOF) {
|
|
||||||
logger.LogIf(ctx, err)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user