mirror of
https://github.com/minio/minio.git
synced 2024-12-25 06:35:56 -05:00
snowball: use latest time when mtime is missing (#17133)
This commit is contained in:
parent
bb6f4d7633
commit
7f7b489a3d
@ -2142,6 +2142,9 @@ func (api objectAPIHandlers) PutObjectExtractHandler(w http.ResponseWriter, r *h
|
||||
return err
|
||||
}
|
||||
opts.MTime = info.ModTime()
|
||||
if opts.MTime.Unix() <= 0 {
|
||||
opts.MTime = UTCNow()
|
||||
}
|
||||
opts.IndexCB = idxCb
|
||||
|
||||
retentionMode, retentionDate, legalHold, s3err := checkPutObjectLockAllowed(ctx, r, bucket, object, getObjectInfo, retPerms, holdPerms)
|
||||
|
Loading…
Reference in New Issue
Block a user