mirror of
https://github.com/minio/minio.git
synced 2025-02-28 05:49:16 -05:00
Make sure to update modTime in erasure metadata (#6296)
This is to ensure that when we update xl.json with new parts have the latest modtime, in-turn avoids consistency issues when the disk is offline.
This commit is contained in:
parent
0fe9e95250
commit
eab947cf42
@ -462,6 +462,7 @@ func (xl xlObjects) PutObjectPart(ctx context.Context, bucket, object, uploadID
|
||||
if disk == OfflineDisk {
|
||||
continue
|
||||
}
|
||||
partsMetadata[i].Stat = xlMeta.Stat
|
||||
partsMetadata[i].Parts = xlMeta.Parts
|
||||
partsMetadata[i].Erasure.AddChecksumInfo(ChecksumInfo{partSuffix, DefaultBitrotAlgorithm, writers[i].Sum()})
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user