From: Sage Weil Date: Thu, 19 May 2016 11:40:13 +0000 (-0400) Subject: os/bluestore/bluestore_types: blob_t: add xxhash64 X-Git-Tag: v11.0.0~359^2~61 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7b3126eea324f80bb87bb2f9a4b11563f8be9e4d;p=ceph.git os/bluestore/bluestore_types: blob_t: add xxhash64 Signed-off-by: Sage Weil --- diff --git a/src/os/bluestore/bluestore_types.cc b/src/os/bluestore/bluestore_types.cc index adbb536b3445..73682728f256 100644 --- a/src/os/bluestore/bluestore_types.cc +++ b/src/os/bluestore/bluestore_types.cc @@ -529,6 +529,10 @@ void bluestore_blob_t::calc_csum(uint64_t b_off, const bufferlist& bl) Checksummer::calculate( get_csum_block_size(), b_off, bl.length(), bl, &csum_data); break; + case CSUM_XXHASH64: + Checksummer::calculate( + get_csum_block_size(), b_off, bl.length(), bl, &csum_data); + break;; case CSUM_CRC32C: Checksummer::calculate( get_csum_block_size(), b_off, bl.length(), bl, &csum_data); @@ -544,6 +548,9 @@ int bluestore_blob_t::verify_csum(uint64_t b_off, const bufferlist& bl) const case CSUM_XXHASH32: return Checksummer::verify( get_csum_block_size(), b_off, bl.length(), bl, csum_data); + case CSUM_XXHASH64: + return Checksummer::verify( + get_csum_block_size(), b_off, bl.length(), bl, csum_data); case CSUM_CRC32C: return Checksummer::verify( get_csum_block_size(), b_off, bl.length(), bl, csum_data);