mirror of
https://github.com/minio/minio.git
synced 2025-01-26 06:03:17 -05:00
heal: avoid logging version not found (#17031)
This commit is contained in:
parent
cf42ede92c
commit
a9269cee29
@ -339,7 +339,9 @@ func (er *erasureObjects) healErasureSet(ctx context.Context, buckets []string,
|
|||||||
// If not deleted, assume they failed.
|
// If not deleted, assume they failed.
|
||||||
result = healEntryFailure(uint64(version.Size))
|
result = healEntryFailure(uint64(version.Size))
|
||||||
if version.VersionID != "" {
|
if version.VersionID != "" {
|
||||||
|
if !isErrVersionNotFound(err) {
|
||||||
logger.LogIf(ctx, fmt.Errorf("unable to heal object %s/%s-v(%s): %w", bucket, version.Name, version.VersionID, err))
|
logger.LogIf(ctx, fmt.Errorf("unable to heal object %s/%s-v(%s): %w", bucket, version.Name, version.VersionID, err))
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
logger.LogIf(ctx, fmt.Errorf("unable to heal object %s/%s: %w", bucket, version.Name, err))
|
logger.LogIf(ctx, fmt.Errorf("unable to heal object %s/%s: %w", bucket, version.Name, err))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user