]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common/bit_vector: use hard-coded value for block size 7672/head
authorJason Dillaman <dillaman@redhat.com>
Thu, 11 Feb 2016 15:33:40 +0000 (10:33 -0500)
committerLoic Dachary <ldachary@redhat.com>
Wed, 17 Feb 2016 06:16:27 +0000 (13:16 +0700)
commit31a2fc475a2de8a656048c85595049ec4548ec6a
tree9aa2c90a3199c078e4311d656681ab176bc34b45
parent7abb6ae8f3cba67009bd022aaeee0a87cdfc6477
common/bit_vector: use hard-coded value for block size

The CEPH_PAGE_SIZE is not actually a constant. On aarch64 platforms
the page size is 64K instead of the assumed 4K.  The CRC block
computations require a true constant.

Fixes: #14747
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit ba2e6ce46fb5f781ffaf6483db8ebd99238419c6)
src/common/bit_vector.hpp
src/test/common/test_bit_vector.cc