From eab947cf42c7458e2c2a2eb416cc03e398803a46 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Thu, 16 Aug 2018 17:55:01 -0700 Subject: [PATCH] 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. --- cmd/xl-v1-multipart.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/xl-v1-multipart.go b/cmd/xl-v1-multipart.go index 89ea8acba..77bb7e63e 100644 --- a/cmd/xl-v1-multipart.go +++ b/cmd/xl-v1-multipart.go @@ -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()}) }