mirror of
https://github.com/minio/minio.git
synced 2025-11-20 09:56:07 -05:00
XL/GetObject: If quorum not available during GetObject appropriate error should be returned. (#2135)
This commit is contained in:
committed by
Harshavardhana
parent
bdff0848ed
commit
aa7079fc7b
@@ -166,6 +166,10 @@ func (m *xlMetaV1) AddObjectPart(partNumber int, partName string, partETag strin
|
||||
|
||||
// ObjectToPartOffset - translate offset of an object to offset of its individual part.
|
||||
func (m xlMetaV1) ObjectToPartOffset(offset int64) (partIndex int, partOffset int64, err error) {
|
||||
if offset == 0 {
|
||||
// Special case - if offset is 0, then partIndex and partOffset are always 0.
|
||||
return 0, 0, nil
|
||||
}
|
||||
partOffset = offset
|
||||
// Seek until object offset maps to a particular part offset.
|
||||
for i, part := range m.Parts {
|
||||
|
||||
Reference in New Issue
Block a user