mirror of
https://github.com/minio/minio.git
synced 2025-01-12 07:23:23 -05:00
Avoid logging errors twice during transitioned objects expiration (#17782)
This commit is contained in:
parent
21cdd2bf5d
commit
1664fd8bb1
@ -403,13 +403,11 @@ func expireTransitionedObject(ctx context.Context, objectAPI ObjectLayer, oi *Ob
|
|||||||
TierName: oi.TransitionedObject.Tier,
|
TierName: oi.TransitionedObject.Tier,
|
||||||
}
|
}
|
||||||
if err := globalTierJournal.AddEntry(entry); err != nil {
|
if err := globalTierJournal.AddEntry(entry); err != nil {
|
||||||
logger.LogIf(ctx, err)
|
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
// Delete metadata on source, now that data in remote tier has been
|
// Delete metadata on source, now that data in remote tier has been
|
||||||
// marked for deletion.
|
// marked for deletion.
|
||||||
if _, err := objectAPI.DeleteObject(ctx, oi.Bucket, oi.Name, opts); err != nil {
|
if _, err := objectAPI.DeleteObject(ctx, oi.Bucket, oi.Name, opts); err != nil {
|
||||||
logger.LogIf(ctx, err)
|
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user