support CRC32 Checksums on single drive setup (#15873)

This commit is contained in:
Harshavardhana
2022-10-15 11:58:47 -07:00
committed by GitHub
parent c68910005b
commit 328d660106
6 changed files with 106 additions and 46 deletions
+1 -1
View File
@@ -186,7 +186,7 @@ func (r *Reader) Read(p []byte) (int, error) {
}
}
if r.contentHasher != nil {
if sum := r.contentHasher.Sum(nil); !bytes.Equal(r.contentHash.Raw(), sum) {
if sum := r.contentHasher.Sum(nil); !bytes.Equal(r.contentHash.Raw, sum) {
err := ChecksumMismatch{
Want: r.contentHash.Encoded,
Got: base64.StdEncoding.EncodeToString(sum),