mirror of
https://github.com/minio/minio.git
synced 2025-01-24 05:03:16 -05:00
XL: Cache: Purging partially cached content upon erasureReadFile failure (#2104)
This commit is contained in:
parent
d6dfcd0ba7
commit
a35341448f
@ -153,6 +153,8 @@ func (xl xlObjects) GetObject(bucket, object string, startOffset int64, length i
|
||||
// Start reading the part name.
|
||||
n, err := erasureReadFile(mw, onlineDisks, bucket, pathJoin(object, partName), partName, eInfos, partOffset, readSize, partSize)
|
||||
if err != nil {
|
||||
// Purge the partial object upon any error.
|
||||
xl.objCache.Delete(path.Join(bucket, object))
|
||||
return err
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user