diff options
| author | chrislusf <chris.lu@gmail.com> | 2016-04-08 15:52:03 -0700 |
|---|---|---|
| committer | chrislusf <chris.lu@gmail.com> | 2016-04-08 15:52:03 -0700 |
| commit | 5d100994b1b9c6679113c8dd73f97aff85397f02 (patch) | |
| tree | 8bf46caa1396bbb88d103789b6aadcec709f0dbc /go/storage/crc.go | |
| parent | a87fe8ffcec7a5210bf97301e2951eea51a0a0ec (diff) | |
| download | seaweedfs-5d100994b1b9c6679113c8dd73f97aff85397f02.tar.xz seaweedfs-5d100994b1b9c6679113c8dd73f97aff85397f02.zip | |
Revert "Merge pull request #281 from thinxer/binary"
This reverts commit a87fe8ffcec7a5210bf97301e2951eea51a0a0ec, reversing
changes made to 6876bfa68524d4fc0a961f89dc29e53fbc654ea5.
Diffstat (limited to 'go/storage/crc.go')
| -rw-r--r-- | go/storage/crc.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/go/storage/crc.go b/go/storage/crc.go index 3150b786c..21e384854 100644 --- a/go/storage/crc.go +++ b/go/storage/crc.go @@ -1,10 +1,10 @@ package storage import ( - "encoding/binary" "fmt" - "github.com/klauspost/crc32" + + "github.com/chrislusf/seaweedfs/go/util" ) var table = crc32.MakeTable(crc32.Castagnoli) @@ -25,6 +25,6 @@ func (c CRC) Value() uint32 { func (n *Needle) Etag() string { bits := make([]byte, 4) - binary.BigEndian.PutUint32(bits, uint32(n.Checksum)) + util.Uint32toBytes(bits, uint32(n.Checksum)) return fmt.Sprintf("\"%x\"", bits) } |
