|
|
@ -102,7 +102,7 @@ func (xl xlObjects) CopyObject(ctx context.Context, srcBucket, srcObject, dstBuc |
|
|
|
_, modTime := listOnlineDisks(storageDisks, metaArr, errs) |
|
|
|
_, modTime := listOnlineDisks(storageDisks, metaArr, errs) |
|
|
|
|
|
|
|
|
|
|
|
// Pick latest valid metadata.
|
|
|
|
// Pick latest valid metadata.
|
|
|
|
xlMeta, err := pickValidXLMeta(ctx, metaArr, modTime) |
|
|
|
xlMeta, err := pickValidXLMeta(ctx, metaArr, modTime, readQuorum) |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
|
return oi, toObjectErr(err, srcBucket, srcObject) |
|
|
|
return oi, toObjectErr(err, srcBucket, srcObject) |
|
|
|
} |
|
|
|
} |
|
|
@ -221,7 +221,7 @@ func (xl xlObjects) getObject(ctx context.Context, bucket, object string, startO |
|
|
|
onlineDisks, modTime := listOnlineDisks(xl.getDisks(), metaArr, errs) |
|
|
|
onlineDisks, modTime := listOnlineDisks(xl.getDisks(), metaArr, errs) |
|
|
|
|
|
|
|
|
|
|
|
// Pick latest valid metadata.
|
|
|
|
// Pick latest valid metadata.
|
|
|
|
xlMeta, err := pickValidXLMeta(ctx, metaArr, modTime) |
|
|
|
xlMeta, err := pickValidXLMeta(ctx, metaArr, modTime, readQuorum) |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
|
return err |
|
|
|
return err |
|
|
|
} |
|
|
|
} |
|
|
@ -402,7 +402,7 @@ func (xl xlObjects) getObjectInfo(ctx context.Context, bucket, object string) (o |
|
|
|
modTime, _ := commonTime(modTimes) |
|
|
|
modTime, _ := commonTime(modTimes) |
|
|
|
|
|
|
|
|
|
|
|
// Pick latest valid metadata.
|
|
|
|
// Pick latest valid metadata.
|
|
|
|
xlMeta, err := pickValidXLMeta(ctx, metaArr, modTime) |
|
|
|
xlMeta, err := pickValidXLMeta(ctx, metaArr, modTime, readQuorum) |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
|
return objInfo, err |
|
|
|
return objInfo, err |
|
|
|
} |
|
|
|
} |
|
|
|