Simplify putObject by not breaking the stream into parts (#7199)

We broke into parts previously as we had checksum for the entire file
to tax less on memory and to have better TTFB. We dont need to now,
after the streaming-bitrot change.
This commit is contained in:
Krishna Srinivas
2019-05-14 12:33:18 -07:00
committed by kannappanr
parent 9c90a28546
commit a343d14f19
2 changed files with 30 additions and 84 deletions

View File

@@ -311,9 +311,9 @@ func TestDisksWithAllParts(t *testing.T) {
diskFailures := make(map[int]string)
// key = disk index, value = part name with hash mismatch
diskFailures[0] = "part.3"
diskFailures[0] = "part.1"
diskFailures[3] = "part.1"
diskFailures[15] = "part.2"
diskFailures[15] = "part.1"
for diskIndex, partName := range diskFailures {
for _, info := range partsMetadata[diskIndex].Erasure.Checksums {
@@ -354,5 +354,4 @@ func TestDisksWithAllParts(t *testing.T) {
}
}
}