From b288eaddb30bcecf2f033d1a550f8f72f06acde9 Mon Sep 17 00:00:00 2001 From: Krishna Srinivas Date: Mon, 30 Jan 2017 14:25:28 -0800 Subject: [PATCH] xl: bit-rot algo was not set in get-object. (#3652) fixes #3650 --- cmd/xl-v1-object.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/xl-v1-object.go b/cmd/xl-v1-object.go index b3ea9b2ff..a55e31306 100644 --- a/cmd/xl-v1-object.go +++ b/cmd/xl-v1-object.go @@ -287,7 +287,7 @@ func (xl xlObjects) GetObject(bucket, object string, startOffset int64, length i // Set checksum algo only once, while it is possible to have // different algos per block because of our `xl.json`. // It is not a requirement, set this only once for all the disks. - if ckSumAlgo != "" { + if ckSumAlgo == "" { ckSumAlgo = ckSumInfo.Algorithm } }