mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 12:10:24 +03:00
support CRC32 Checksums on single drive setup (#15873)
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user