XL: Handle quorum situations properly for write operations. (#1986)

Adds two test cases one for

 - PutObject when write quorum is not available.
 - PutObjectPart when write quorum is not available.

Fixes #1951
This commit is contained in:
Harshavardhana
2016-06-27 10:01:09 -07:00
committed by GitHub
parent c88720ea2c
commit 2e1f66c37d
7 changed files with 585 additions and 281 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ func generateBytesData(size int) []byte {
b = letterBytes[rand.Intn(len(letterBytes))]
return []byte{b}
}
// repeat the random character chosen size.
// repeat the random character chosen size
return bytes.Repeat(getRandomByte(), size)
}