fix: use meta.Erasure.Index for GetObject() to reconstruct object (#10764)

This commit is contained in:
Krishna Srinivas
2020-10-26 16:19:42 -07:00
committed by GitHub
parent 46275c6547
commit c49a80db41
4 changed files with 32 additions and 3 deletions

View File

@@ -47,6 +47,7 @@ func TestAddObjectPart(t *testing.T) {
// Setup.
fi := newFileInfo("test-object", 8, 8)
fi.Erasure.Index = 1
if !fi.IsValid() {
t.Fatalf("unable to get xl meta")
}
@@ -80,6 +81,7 @@ func TestObjectPartIndex(t *testing.T) {
// Setup.
fi := newFileInfo("test-object", 8, 8)
fi.Erasure.Index = 1
if !fi.IsValid() {
t.Fatalf("unable to get xl meta")
}
@@ -108,6 +110,7 @@ func TestObjectPartIndex(t *testing.T) {
func TestObjectToPartOffset(t *testing.T) {
// Setup.
fi := newFileInfo("test-object", 8, 8)
fi.Erasure.Index = 1
if !fi.IsValid() {
t.Fatalf("unable to get xl meta")
}