@ -46,7 +46,7 @@ func (er erasureObjects) checkUploadIDExists(ctx context.Context, bucket, object
disks := er . getDisks ( )
// Read metadata associated with the object from all disks.
metaArr , errs := readAllFileInfo ( ctx , disks , minioMetaMultipartBucket , er . getUploadIDDir ( bucket , object , uploadID ) , "" )
metaArr , errs := readAllFileInfo ( ctx , disks , minioMetaMultipartBucket , er . getUploadIDDir ( bucket , object , uploadID ) , "" , false )
readQuorum , _ , err := objectQuorumFromMeta ( ctx , er , metaArr , errs )
if err != nil {
@ -113,7 +113,7 @@ func (er erasureObjects) cleanupStaleUploadsOnDisk(ctx context.Context, disk Sto
}
for _ , uploadIDDir := range uploadIDDirs {
uploadIDPath := pathJoin ( shaDir , uploadIDDir )
fi , err := disk . ReadVersion ( ctx , minioMetaMultipartBucket , uploadIDPath , "" )
fi , err := disk . ReadVersion ( ctx , minioMetaMultipartBucket , uploadIDPath , "" , false )
if err != nil {
continue
}
@ -127,7 +127,7 @@ func (er erasureObjects) cleanupStaleUploadsOnDisk(ctx context.Context, disk Sto
return
}
for _ , tmpDir := range tmpDirs {
fi , err := disk . ReadVersion ( ctx , minioMetaTmpBucket , tmpDir , "" )
fi , err := disk . ReadVersion ( ctx , minioMetaTmpBucket , tmpDir , "" , false )
if err != nil {
continue
}
@ -181,7 +181,7 @@ func (er erasureObjects) ListMultipartUploads(ctx context.Context, bucket, objec
if populatedUploadIds . Contains ( uploadID ) {
continue
}
fi , err := disk . ReadVersion ( ctx , minioMetaMultipartBucket , pathJoin ( er . getUploadIDDir ( bucket , object , uploadID ) ) , "" )
fi , err := disk . ReadVersion ( ctx , minioMetaMultipartBucket , pathJoin ( er . getUploadIDDir ( bucket , object , uploadID ) ) , "" , false )
if err != nil {
return result , toObjectErr ( err , bucket , object )
}
@ -371,7 +371,7 @@ func (er erasureObjects) PutObjectPart(ctx context.Context, bucket, object, uplo
// Read metadata associated with the object from all disks.
partsMetadata , errs = readAllFileInfo ( ctx , storageDisks , minioMetaMultipartBucket ,
uploadIDPath , "" )
uploadIDPath , "" , false )
// get Quorum for this object
_ , writeQuorum , err := objectQuorumFromMeta ( ctx , er , partsMetadata , errs )
@ -474,7 +474,7 @@ func (er erasureObjects) PutObjectPart(ctx context.Context, bucket, object, uplo
}
// Read metadata again because it might be updated with parallel upload of another part.
partsMetadata , errs = readAllFileInfo ( ctx , onlineDisks , minioMetaMultipartBucket , uploadIDPath , "" )
partsMetadata , errs = readAllFileInfo ( ctx , onlineDisks , minioMetaMultipartBucket , uploadIDPath , "" , false )
reducedErr = reduceWriteQuorumErrs ( ctx , errs , objectOpIgnoredErrs , writeQuorum )
if reducedErr == errErasureWriteQuorum {
return pi , toObjectErr ( reducedErr , bucket , object )
@ -552,7 +552,7 @@ func (er erasureObjects) GetMultipartInfo(ctx context.Context, bucket, object, u
storageDisks := er . getDisks ( )
// Read metadata associated with the object from all disks.
partsMetadata , errs := readAllFileInfo ( ctx , storageDisks , minioMetaMultipartBucket , uploadIDPath , opts . VersionID )
partsMetadata , errs := readAllFileInfo ( ctx , storageDisks , minioMetaMultipartBucket , uploadIDPath , opts . VersionID , false )
// get Quorum for this object
readQuorum , _ , err := objectQuorumFromMeta ( ctx , er , partsMetadata , errs )
@ -600,7 +600,7 @@ func (er erasureObjects) ListObjectParts(ctx context.Context, bucket, object, up
storageDisks := er . getDisks ( )
// Read metadata associated with the object from all disks.
partsMetadata , errs := readAllFileInfo ( ctx , storageDisks , minioMetaMultipartBucket , uploadIDPath , "" )
partsMetadata , errs := readAllFileInfo ( ctx , storageDisks , minioMetaMultipartBucket , uploadIDPath , "" , false )
// get Quorum for this object
_ , writeQuorum , err := objectQuorumFromMeta ( ctx , er , partsMetadata , errs )
@ -704,7 +704,7 @@ func (er erasureObjects) CompleteMultipartUpload(ctx context.Context, bucket str
storageDisks := er . getDisks ( )
// Read metadata associated with the object from all disks.
partsMetadata , errs := readAllFileInfo ( ctx , storageDisks , minioMetaMultipartBucket , uploadIDPath , "" )
partsMetadata , errs := readAllFileInfo ( ctx , storageDisks , minioMetaMultipartBucket , uploadIDPath , "" , false )
// get Quorum for this object
_ , writeQuorum , err := objectQuorumFromMeta ( ctx , er , partsMetadata , errs )
@ -889,7 +889,7 @@ func (er erasureObjects) AbortMultipartUpload(ctx context.Context, bucket, objec
uploadIDPath := er . getUploadIDDir ( bucket , object , uploadID )
// Read metadata associated with the object from all disks.
partsMetadata , errs := readAllFileInfo ( ctx , er . getDisks ( ) , minioMetaMultipartBucket , uploadIDPath , "" )
partsMetadata , errs := readAllFileInfo ( ctx , er . getDisks ( ) , minioMetaMultipartBucket , uploadIDPath , "" , false )
// get Quorum for this object
_ , writeQuorum , err := objectQuorumFromMeta ( ctx , er , partsMetadata , errs )