aboutsummaryrefslogtreecommitdiff
path: root/weed/s3api/chunked_reader_v4.go
diff options
context:
space:
mode:
authorKonstantin Lebedev <9497591+kmlebedev@users.noreply.github.com>2025-04-23 19:31:03 +0500
committerGitHub <noreply@github.com>2025-04-23 07:31:03 -0700
commit8c1cb203fadd06987fc4caf4846706b6ce0f2d9d (patch)
tree420a911f3bd2a0a3484ee7f45a17e2f37233b0f2 /weed/s3api/chunked_reader_v4.go
parentcea34dc21a3ac234baf46a131ee687ba25df2acb (diff)
downloadseaweedfs-8c1cb203fadd06987fc4caf4846706b6ce0f2d9d.tar.xz
seaweedfs-8c1cb203fadd06987fc4caf4846706b6ce0f2d9d.zip
[s3] fix checksum algorithm CRC64NVMe (#6722)
Diffstat (limited to 'weed/s3api/chunked_reader_v4.go')
-rw-r--r--weed/s3api/chunked_reader_v4.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/s3api/chunked_reader_v4.go b/weed/s3api/chunked_reader_v4.go
index a69319500..d8fdc7525 100644
--- a/weed/s3api/chunked_reader_v4.go
+++ b/weed/s3api/chunked_reader_v4.go
@@ -29,7 +29,6 @@ import (
"fmt"
"hash"
"hash/crc32"
- "hash/crc64"
"io"
"net/http"
"time"
@@ -39,6 +38,7 @@ import (
"github.com/seaweedfs/seaweedfs/weed/s3api/s3err"
"github.com/dustin/go-humanize"
+ "github.com/minio/crc64nvme"
)
// calculateSeedSignature - Calculate seed signature in accordance with
@@ -674,7 +674,7 @@ func getCheckSumWriter(checksumAlgorithm ChecksumAlgorithm) hash.Hash {
case ChecksumAlgorithmCRC32C:
return crc32.New(crc32.MakeTable(crc32.Castagnoli))
case ChecksumAlgorithmCRC64NVMe:
- return crc64.New(crc64.MakeTable(crc64.ISO))
+ return crc64nvme.New()
case ChecksumAlgorithmSHA1:
return sha1.New()
case ChecksumAlgorithmSHA256: